X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b94ae1ea10f3794b36e8ad554381124ee9ec296b..1f80a703f24bc50a5ce92fb1406dd1b38ac4e506:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 97b471a1e3..04856bb161 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -145,6 +145,8 @@ void wxCheckBox::SetLabel(const wxString& label) SetWindowText(GetHwnd(), label); } +#define CHECK_SIZE 13 + wxSize wxCheckBox::DoGetBestSize() const { int wCheckbox, hCheckbox; @@ -154,15 +156,15 @@ wxSize wxCheckBox::DoGetBestSize() const if ( !str.IsEmpty() ) { GetTextExtent(str, &wCheckbox, &hCheckbox); - wCheckbox += RADIO_SIZE; + wCheckbox += CHECK_SIZE; - if ( hCheckbox < RADIO_SIZE ) - hCheckbox = RADIO_SIZE; + if ( hCheckbox < CHECK_SIZE ) + hCheckbox = CHECK_SIZE; } else { - wCheckbox = RADIO_SIZE; - hCheckbox = RADIO_SIZE; + wCheckbox = CHECK_SIZE; + hCheckbox = CHECK_SIZE; } return wxSize(wCheckbox, hCheckbox);