Bitmap buttons were not refreshed correctly.

This commit is contained in:
Bill Jin 2000-02-26 18:29:15 +00:00 committed by Alexandre Julliard
parent fd018cc9da
commit 4f155e88bc

View file

@ -275,7 +275,10 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
case BM_SETIMAGE:
oldHbitmap = infoPtr->hImage;
if ((wndPtr->dwStyle & BS_BITMAP) || (wndPtr->dwStyle & BS_ICON))
{
infoPtr->hImage = (HANDLE) lParam;
InvalidateRect( hWnd, NULL, FALSE );
}
return oldHbitmap;
case BM_GETIMAGE: