]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
All editors that derive from wxGridCellTextEditor will now select the
[wxWidgets.git] / src / msw / combobox.cpp
index ceb2d59b8e8b51cc9220a852490674cfc8d4b6f3..0e81ed856a2c3f3254328a59bb2a7c39c2625957 100644 (file)
@@ -304,6 +304,11 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
                         const wxValidator& validator,
                         const wxString& name)
 {
+    // pretend that wxComboBox is hidden while it is positioned and resized and
+    // show it only right before leaving this method because otherwise there is
+    // some noticeable flicker while the control rearranges itself
+    m_isShown = FALSE;
+
     // first create wxWin object
     if ( !CreateControl(parent, id, pos, size, style, validator, name) )
         return FALSE;
@@ -360,6 +365,9 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
                                       );
     }
 
+    // and finally, show the control
+    Show(TRUE);
+
     return TRUE;
 }