X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df055cbbdc988141dc9687c98eb3889f332d03c0..904ccf52370e021b55b8a4c1afc5f62bc904da20:/src/msw/dialog.cpp 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;