Use new function GetItemLabel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5417,7 +5417,7 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel),
|
||||
// menu creation code
|
||||
wxMenuItem *item = (wxMenuItem*)mii.dwItemData;
|
||||
|
||||
const wxChar *p = wxStrchr(item->GetText().wx_str(), _T('&'));
|
||||
const wxChar *p = wxStrchr(item->GetItemLabel().wx_str(), _T('&'));
|
||||
while ( p++ )
|
||||
{
|
||||
if ( *p == _T('&') )
|
||||
|
Reference in New Issue
Block a user