X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e1b6d43a79ec76f57c6893e8394f327ff7a71ba..004f4002877acc09d8bc213602f55b22bdbae345:/samples/menu/menu.cpp diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index 121e74cf53..c956f21df5 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -496,6 +496,9 @@ MyFrame::MyFrame() _T("menubar itself.\n\n") _T("Right click the band below to test popup menus.\n")); #endif +#ifdef __POCKETPC__ + EnableContextMenu(); +#endif } MyFrame::~MyFrame() @@ -930,7 +933,7 @@ void MyFrame::OnFindMenuItem(wxCommandEvent& WXUNUSED(event)) void MyFrame::ShowContextMenu(const wxPoint& pos) { - wxMenu menu(_T("Test popup")); + wxMenu menu; menu.Append(Menu_Help_About, _T("&About")); menu.Append(Menu_Popup_Submenu, _T("&Submenu"), CreateDummyMenu(NULL));