From: Vadim Zeitlin Date: Fri, 26 Apr 2002 20:35:11 +0000 (+0000) Subject: refresh and flicker even more to ensure proper refresh in the resizeable dialogs X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6b6ea919a4a736206ff54265e463b96439eb1dd1 refresh and flicker even more to ensure proper refresh in the resizeable dialogs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 90ed1c507f..f37849b3ee 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -398,14 +398,6 @@ 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; @@ -430,7 +422,7 @@ long wxDialog::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) processed = TRUE; if ( !HasFlag(wxNO_FULL_REPAINT_ON_RESIZE) ) { - ::EnumChildWindows(GetHwnd(), wxRefreshChildProc, 0); + ::InvalidateRect(GetHwnd(), NULL, FALSE /* erase bg */); } break;