Check, Radio & 3State buttons send WM_CTLCOLORSTATIC instead of

WM_CTLCOLORBTN.
This commit is contained in:
Sander van Leeuwen 2002-01-04 21:26:20 +00:00 committed by Alexandre Julliard
parent c603988cd9
commit 7ccd27a6d5

View File

@ -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)
{