Mercurial > dwindows
comparison win/dw.c @ 1826:10c59bb2c47f
On Windows invalidate the bitmap button after changing the bitmap to force a redraw.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 28 Oct 2012 02:59:56 +0000 |
parents | 8d231cab845d |
children | ca304f28de3b |
comparison
equal
deleted
inserted
replaced
1825:df7f3967c21e | 1826:10c59bb2c47f |
---|---|
6668 ImageList_Replace(dimlist, 0, iconinfo.hbmColor, iconinfo.hbmMask); | 6668 ImageList_Replace(dimlist, 0, iconinfo.hbmColor, iconinfo.hbmMask); |
6669 DeleteObject(iconinfo.hbmColor); | 6669 DeleteObject(iconinfo.hbmColor); |
6670 DeleteObject(iconinfo.hbmMask); | 6670 DeleteObject(iconinfo.hbmMask); |
6671 DestroyIcon(icon); | 6671 DestroyIcon(icon); |
6672 } | 6672 } |
6673 InvalidateRect(handle, NULL, FALSE); | |
6673 } | 6674 } |
6674 #endif | 6675 #endif |
6675 else | 6676 else |
6676 { | 6677 { |
6677 oldbitmap = (HBITMAP)SendMessage(handle, STM_GETIMAGE, IMAGE_BITMAP, 0); | 6678 oldbitmap = (HBITMAP)SendMessage(handle, STM_GETIMAGE, IMAGE_BITMAP, 0); |