Call DefWindowProc for WM_CTLCOLORSTATIC message when the apps does
not.
diff --git a/controls/static.c b/controls/static.c
index fa127b6..488b664 100644
--- a/controls/static.c
+++ b/controls/static.c
@@ -445,7 +445,9 @@
{
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))