Bitmap buttons were not refreshed correctly.
This commit is contained in:
parent
fd018cc9da
commit
4f155e88bc
|
@ -275,7 +275,10 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
|
||||||
case BM_SETIMAGE:
|
case BM_SETIMAGE:
|
||||||
oldHbitmap = infoPtr->hImage;
|
oldHbitmap = infoPtr->hImage;
|
||||||
if ((wndPtr->dwStyle & BS_BITMAP) || (wndPtr->dwStyle & BS_ICON))
|
if ((wndPtr->dwStyle & BS_BITMAP) || (wndPtr->dwStyle & BS_ICON))
|
||||||
|
{
|
||||||
infoPtr->hImage = (HANDLE) lParam;
|
infoPtr->hImage = (HANDLE) lParam;
|
||||||
|
InvalidateRect( hWnd, NULL, FALSE );
|
||||||
|
}
|
||||||
return oldHbitmap;
|
return oldHbitmap;
|
||||||
|
|
||||||
case BM_GETIMAGE:
|
case BM_GETIMAGE:
|
||||||
|
|
Loading…
Reference in New Issue