X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90002c499c3ad62868902e05d2ccccba775bba4e..2ed3265e18ed0470d7b56bc2a8a6796c697b90af:/src/msw/menuitem.cpp diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index f9e310d9a9..f64f57eb17 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -141,9 +141,10 @@ bool wxMenuItem::IsChecked() const return (flag & MF_CHECKED) != 0; } -wxString wxMenuItem::GetLabel() const +/* static */ +wxString wxMenuItemBase::GetLabelFromText(const wxString& text) { - return wxStripMenuCodes(m_text); + return wxStripMenuCodes(text); } // accelerators @@ -240,7 +241,7 @@ void wxMenuItem::SetText(const wxString& text) #endif //owner drawn { flagsOld |= MF_STRING; - data = (char*) text.c_str(); + data = (wxChar*) text.c_str(); } if ( ::ModifyMenu(hMenu, id,