]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tglbtn.cpp
Added intermediate state (m_showOnIdle) indicating that
[wxWidgets.git] / src / msw / tglbtn.cpp
index e3e986fe8c0ef32437136d1ed5cb32ba6fb37a82..a0b22727dfb33efebf7097aab18621b95a884f19 100644 (file)
@@ -114,7 +114,7 @@ wxSize wxToggleButton::DoGetBestSize() const
 {
    wxString label = wxGetWindowText(GetHWND());
    int wBtn;
-   GetTextExtent(wxStripMenuCodes(label), &wBtn, NULL);
+   GetTextExtent(GetLabelText(label), &wBtn, NULL);
 
    int wChar, hChar;
    wxGetCharSize(GetHWND(), &wChar, &hChar, GetFont());