From 4f155e88bc77d21525ea4d3e400e2e3cc5bbe8bb Mon Sep 17 00:00:00 2001 From: Bill Jin <billj@corel.ca> Date: Sat, 26 Feb 2000 18:29:15 +0000 Subject: [PATCH] Bitmap buttons were not refreshed correctly. --- controls/button.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controls/button.c b/controls/button.c index d51d190295c..cfbcc269251 100644 --- a/controls/button.c +++ b/controls/button.c @@ -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: -- GitLab