Implement wxComboCtrl::GetSizeFromTextSize().

Improve calculation of wxComboCtrl best size which doesn't work correctly for
non-default fonts as shown by r72935. It is still not perfect but better now.

Closes #14825.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-11-14 13:48:23 +00:00
parent aa24f946c6
commit e2ac737fba
6 changed files with 58 additions and 20 deletions

View File

@@ -64,10 +64,6 @@
#if wxUSE_RICHEDIT
#if wxUSE_INKEDIT
#include "wx/dynlib.h"
#endif
// old mingw32 has richedit stuff directly in windows.h and doesn't have
// richedit.h at all
#if !defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)