]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
don't repaint window if hidden: reduces flickering of hidden windows which change...
[wxWidgets.git] / src / msw / control.cpp
index 3b6083693312c75521e6d5e378fededc805fe35b..a4b4718831da045155d80a470d460ae4208c904b 100644 (file)
@@ -171,10 +171,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
     SetFont(GetDefaultAttributes().font);
 
     // set the size now if no initial size specified
-    if ( w <= 0 || h <= 0 )
-    {
-        SetBestSize(size);
-    }
+    SetInitialBestSize(size);
 
     return TRUE;
 }