]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tglbtn.cpp
extracted wxFrame::MSWTranslateMessage() implementation into new MSWDoTranslateMessag...
[wxWidgets.git] / src / msw / tglbtn.cpp
index 55368ab31c653684c5c48756a5e33cbe04d7239f..d9c7fd124549d8f3b4281f420d66e8dc3ed17ef5 100644 (file)
@@ -114,7 +114,7 @@ wxSize wxToggleButton::DoGetBestSize() const
 {
    wxString label = wxGetWindowText(GetHWND());
    int wBtn;
-   GetTextExtent(label, &wBtn, NULL);
+   GetTextExtent(wxStripMenuCodes(label), &wBtn, NULL);
 
    int wChar, hChar;
    wxGetCharSize(GetHWND(), &wChar, &hChar, GetFont());