diff --git a/controls/button.c b/controls/button.c index 7e92dae461a255ed616931c11ad63ab52e354952..90bafbbfb9385f74f4e9bf23440217322784ad01 100644 --- a/controls/button.c +++ b/controls/button.c @@ -803,9 +803,9 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action ) if ((hFont = get_button_font( hwnd ))) SelectObject( hDC, hFont ); - hBrush = SendMessageW( GetParent(hwnd), WM_CTLCOLORBTN, hDC, (LPARAM)hwnd ); + hBrush = SendMessageW( GetParent(hwnd), WM_CTLCOLORSTATIC, hDC, (LPARAM)hwnd ); if (!hBrush) /* did the app forget to call defwindowproc ? */ - hBrush = DefWindowProcW( GetParent(hwnd), WM_CTLCOLORBTN, hDC, (LPARAM)hwnd ); + hBrush = DefWindowProcW( GetParent(hwnd), WM_CTLCOLORSTATIC, hDC, (LPARAM)hwnd ); if (style & BS_LEFTTEXT) {