Call DefWindowProc for WM_CTLCOLORSTATIC message when the apps does

not.
This commit is contained in:
Gerard Patel 2001-03-10 19:16:26 +00:00 committed by Alexandre Julliard
parent 3d0589ae7d
commit d36a3ef385
1 changed files with 3 additions and 1 deletions

View File

@ -445,7 +445,9 @@ static void STATIC_PaintTextfn( WND *wndPtr, HDC hdc )
{
hBrush = SendMessageW( GetParent(wndPtr->hwndSelf), WM_CTLCOLORSTATIC,
hdc, wndPtr->hwndSelf );
if (!hBrush) hBrush = GetStockObject(WHITE_BRUSH);
if (!hBrush) /* did the app forget to call defwindowproc ? */
hBrush = DefWindowProcW(GetParent(wndPtr->hwndSelf), WM_CTLCOLORSTATIC,
hdc, wndPtr->hwndSelf);
FillRect( hdc, &rc, hBrush );
}
if (!IsWindowEnabled(wndPtr->hwndSelf))