X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04f47ce8794e6b35c75a551c3945d328398291c6..505f70dec68ba08ade903e8e9e0eb41ebd36531c:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index ceb2d59b8e..0e81ed856a 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -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; }