]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
A few tweaks and cleanups
[wxWidgets.git] / src / msw / dialog.cpp
index 7fe3bd5c0f94f5e9ea68c49a6a1eb160f392452e..90ed1c507f4343236964e3e9e7cc02561325dffd 100644 (file)
@@ -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;