]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checkbox.cpp
SendSizeEvent() method moved from wxWindow to wxFrame, as that is the only place...
[wxWidgets.git] / src / msw / checkbox.cpp
index c838a433cb1ea98097a929dcf3937ac8c413b190..3e10a30ec20096159a2cf0f59c8b098ad115c901 100644 (file)
@@ -156,10 +156,7 @@ wxSize wxCheckBox::DoGetBestSize() const
         wxScreenDC dc;
         dc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
 
         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());
     }
 
     wxString str = wxGetWindowText(GetHWND());