]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct best size computation for wxCheckBox with borders under MSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Sep 2012 22:48:16 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Sep 2012 22:48:16 +0000 (22:48 +0000)
As wxCheckBox can now have borders (see previous commit), we must override
DoGetBestClientSize() and not DoGetBestSize() in it to take account of them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/checkbox.h
src/msw/checkbox.cpp

index bdb5ae353f79908dda72b00000ee0d605b266b9a..c8416e0eaed695731e28f8eeb89a0228415e17b7 100644 (file)
@@ -59,7 +59,7 @@ public:
     virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
 
 protected:
-    virtual wxSize DoGetBestSize() const;
+    virtual wxSize DoGetBestClientSize() const;
 
     virtual void DoSet3StateValue(wxCheckBoxState value);
     virtual wxCheckBoxState DoGet3StateValue() const;
index 82433cd9667666619ee7f99b721e5f932a30481e..491279641354063d05674f4112a2c2f1e47c447b 100644 (file)
@@ -134,7 +134,7 @@ WXDWORD wxCheckBox::MSWGetStyle(long style, WXDWORD *exstyle) const
 // wxCheckBox geometry
 // ----------------------------------------------------------------------------
 
-wxSize wxCheckBox::DoGetBestSize() const
+wxSize wxCheckBox::DoGetBestClientSize() const
 {
     static int s_checkSize = 0;