Applied patch #1198422 (CheckBox labels being truncated).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2005-11-27 21:30:40 +00:00
parent 9630cac5fc
commit c5f975dddb
4 changed files with 25 additions and 44 deletions

View File

@@ -96,16 +96,12 @@ wxSize wxStaticBox::DoGetBestSize() const
int nCx;
int nCy;
int wBox;
wxFont vFont = GetFont();
wxGetCharSize( GetHWND()
,&nCx
,&nCy
,&vFont
);
nCx = GetCharWidth();
nCy = GetCharHeight();
GetTextExtent( wxGetWindowText(m_hWnd)
,&wBox
,&nCy
,NULL
);
wBox += 3 * nCx;