Skip to content
Snippets Groups Projects
Commit 4f155e88 authored by Bill Jin's avatar Bill Jin Committed by Alexandre Julliard
Browse files

Bitmap buttons were not refreshed correctly.

parent fd018cc9
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment