+#if wxUSE_MENUS
+/* static */
+wxMenuBar *MyFrame::CreateMainMenubar()
+{
+ wxMenu *menuFile = new wxMenu;
+
+ menuFile->Append(wxID_NEW, "&New window\tCtrl-N", "Create a new child window");
+ menuFile->AppendCheckItem(MDI_FULLSCREEN, "Show &full screen\tCtrl-F");
+ menuFile->Append(wxID_EXIT, "&Exit\tAlt-X", "Quit the program");
+
+ wxMenu *menuHelp = new wxMenu;
+ menuHelp->Append(wxID_ABOUT, "&About\tF1");
+
+ wxMenuBar *mbar = new wxMenuBar;
+ mbar->Append(menuFile, "&File");
+ mbar->Append(menuHelp, "&Help");
+
+ return mbar;
+}
+#endif // wxUSE_MENUS
+