Commit d36a3ef3 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Call DefWindowProc for WM_CTLCOLORSTATIC message when the apps does

not.
parent 3d0589ae
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment