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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user