Commit 4f155e88 authored by Bill Jin's avatar Bill Jin Committed by Alexandre Julliard

Bitmap buttons were not refreshed correctly.

parent fd018cc9
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment