From df055cbbdc988141dc9687c98eb3889f332d03c0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Apr 2002 17:20:44 +0000 Subject: [PATCH] refresh the dialog children forcefully even if wxCLIP_CHILDREN was specified git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dialog.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 7fe3bd5c0f..90ed1c507f 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -398,6 +398,14 @@ void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event)) // dialog window proc // --------------------------------------------------------------------------- +BOOL CALLBACK wxRefreshChildProc(HWND hwnd, LPARAM WXUNUSED(lParam)) +{ + ::InvalidateRect(hwnd, NULL, FALSE /* don't erase bg */); + + // continue enumeration + return TRUE; +} + long wxDialog::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) { long rc = 0; @@ -422,7 +430,7 @@ long wxDialog::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) processed = TRUE; if ( !HasFlag(wxNO_FULL_REPAINT_ON_RESIZE) ) { - Refresh(); + ::EnumChildWindows(GetHwnd(), wxRefreshChildProc, 0); } break;