]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Committing in .
[wxWidgets.git] / src / msw / window.cpp
index e01ee082b2c22f496d4b0bf5b724047ff7274dae..50f56cd2a7bb57d6287896044e27b8b2cfdea276 100644 (file)
@@ -1646,9 +1646,11 @@ void wxWindowMSW::DoSetSize(int x, int y, int width, int height, int sizeFlags)
     GetPosition(&currentX, &currentY);
     GetSize(&currentW, &currentH);
 
-    // ... and don't do anything (avoiding flicker) if it's already ok
+    // ... and don't do anything (avoiding flicker) if it's already ok unless
+    // we're forced to resize the window
     if ( x == currentX && y == currentY &&
-         width == currentW && height == currentH )
+         width == currentW && height == currentH &&
+            !(sizeFlags & wxSIZE_FORCE) )
     {
         return;
     }