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;
// and now create the MSW control
- if ( !MSWCreateControl(_T("COMBOBOX"), msStyle, pos, size, wxEmptyString, (WXDWORD)-1, false) )
+ if ( !MSWCreateControl(_T("COMBOBOX"), msStyle) )
return FALSE;
// A choice/combobox normally has a white background (or other, depending
);
}
- // finally, show the combo box
- Show(true);
+ // and finally, show the control
+ Show(TRUE);
return TRUE;
}