]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
Corrected wrong use of delete in region code.
[wxWidgets.git] / src / msw / dialog.cpp
index 7fe3bd5c0f94f5e9ea68c49a6a1eb160f392452e..f37849b3ee09e7ce847b57e59a05506a1225d894 100644 (file)
@@ -422,7 +422,7 @@ long wxDialog::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
             processed = TRUE;
             if ( !HasFlag(wxNO_FULL_REPAINT_ON_RESIZE) )
             {
-                Refresh();
+                ::InvalidateRect(GetHwnd(), NULL, FALSE /* erase bg */);
             }
             break;