- int nCx,nCy;
- wxGetCharSize( GetHWND(), &nCx, &nCy, &vFont );
- int nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy);
- SetBestFittingSize(wxSize(-1,nEditHeight));
+ int nEditHeight;
+ wxGetCharSize( GetHWND(), NULL, &nEditHeight, &vFont );
+ nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nEditHeight);
+ SetBestFittingSize(wxSize(-1,nEditHeight+4)); // +2x2 for the border