Hi! Try with
menubar = new wxMenuBar();
SetMenuBar(menubar);
wxMenu* menu = new wxMenu();
wxMenu* menu_sub = new wxMenu();
menu_sub->Append(, wxT("new1"), wxT(""), wxITEM_NORMAL);
menu_sub->Append(, wxT("new2"), wxT(""), wxITEM_NORMAL);
menu_sub->Append(, wxT("new3"), wxT(""), wxITEM_NORMAL);
menu->Append(, wxT("New"), menu_sub, wxT(""));
wxMenu* menu_sub = new wxMenu();
menu_sub->Append(, wxT("open1"), wxT(""), wxITEM_NORMAL);
menu_sub->Append(, wxT("open2"), wxT(""), wxITEM_NORMAL);
menu_sub->Append(, wxT("open3"), wxT(""), wxITEM_NORMAL);
menu->Append(, wxT("Open"), menu_sub, wxT(""));
menu->Append(, wxT("Exit"), wxT(""), wxITEM_NORMAL);
menubar->Append(menu, wxT("File"));
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |