int nEditHeight;
wxGetCharSize( GetHWND(), NULL, &nEditHeight, &vFont );
nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nEditHeight);
- SetBestFittingSize(wxSize(-1,nEditHeight+4)); // +2x2 for the border
+ SetInitialSize(wxSize(-1,nEditHeight+4)); // +2x2 for the border
if (!rsValue.empty())
{
if ( HasFlag(wxCB_READONLY) )
SetStringSelection(rsValue);
else
- ::WinSetWindowText(GetHwnd(), (PSZ)rsValue.c_str());
+ ::WinSetWindowText(GetHwnd(), rsValue.c_str());
} // end of wxComboBox::SetValue
//
// Now replace with 'value', by pasting.
//
wxSetClipboardData( wxDF_TEXT
- ,(wxObject *)rsValue.c_str()
+ ,rsValue.c_str()
,0
,0
);