X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..a967ef9dcefdb23a73ab389b5749fe1e17bedc5b:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index c838a433cb..3e10a30ec2 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -156,10 +156,7 @@ wxSize wxCheckBox::DoGetBestSize() const wxScreenDC dc; dc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT)); - // the height of a standard button in the dialog units is 8, - // translate this to pixels (as one dialog unit is precisely equal to - // 8 character heights, it's just the char height) - s_checkSize = dc.GetCharHeight(); + s_checkSize = (3*dc.GetCharHeight())/2; } wxString str = wxGetWindowText(GetHWND());