From d36a3ef3858784b79d0f351ecaccc7dabcfdf553 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sat, 10 Mar 2001 19:16:26 +0000 Subject: [PATCH] Call DefWindowProc for WM_CTLCOLORSTATIC message when the apps does not. --- controls/static.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controls/static.c b/controls/static.c index fa127b6163d..488b664c498 100644 --- a/controls/static.c +++ b/controls/static.c @@ -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)) -- 2.11.4.GIT