- wxMenu menu;
-
- menu.Append(PU_RESTORE, _T("&Restore TBTest"));
- menu.Append(PU_NEW_ICON,_T("&Set New Icon"));
- menu.Append(PU_EXIT, _T("E&xit"));
+ wxMenu *menu = new wxMenu;
+
+ menu->Append(PU_RESTORE, _T("&Restore TBTest"));
+ menu->Append(PU_NEW_ICON,_T("&Set New Icon"));
+ menu->Append(PU_EXIT, _T("E&xit"));