X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8c10795d589c024dc7fc3640087a48a1ec612ce..d7b284e5c62523c9a43e26977672b4ff7c5b8981:/src/msw/checkbox.cpp?ds=inline diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index b58d672d58..32cfc4e50e 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "checkbox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -218,7 +214,7 @@ wxSize wxCheckBox::DoGetBestSize() const int wCheckbox, hCheckbox; if ( !str.IsEmpty() ) { - GetTextExtent(str, &wCheckbox, &hCheckbox); + GetTextExtent(wxStripMenuCodes(str), &wCheckbox, &hCheckbox); wCheckbox += s_checkSize + GetCharWidth(); if ( hCheckbox < s_checkSize ) @@ -457,7 +453,8 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item) // to it without breaking backwards compatibility // classic Win32 version -- this can be useful when we move this into -#ifdef __WXWINCE__ + // wxRendererNative +#if defined(__WXWINCE__) || !wxUSE_UXTHEME UINT state = DFCS_BUTTONCHECK; if ( !IsEnabled() ) state |= DFCS_INACTIVE;