+ MyFrame *frame = new MyFrame("wxWizard Sample");
+
+ // and show it (the frames, unlike simple controls, are not shown when
+ // created initially)
+ frame->Show(TRUE);
+
+ // we're done
+ return TRUE;
+}
+
+// ----------------------------------------------------------------------------
+// MyFrame
+// ----------------------------------------------------------------------------
+
+MyFrame::MyFrame(const wxString& title)
+ : wxFrame((wxFrame *)NULL, -1, title,
+ wxDefaultPosition, wxSize(250, 150)) // small frame
+{
+ wxMenu *menuFile = new wxMenu;
+ menuFile->Append(Wizard_Run, "&Run wizard...\tCtrl-R");
+ menuFile->AppendSeparator();
+ menuFile->Append(Wizard_Quit, "E&xit\tAlt-X", "Quit this program");
+
+ wxMenu *helpMenu = new wxMenu;
+ helpMenu->Append(Wizard_About, "&About...\tF1", "Show about dialog");
+
+ // now append the freshly created menu to the menu bar...
+ wxMenuBar *menuBar = new wxMenuBar();
+ menuBar->Append(menuFile, "&File");
+ menuBar->Append(helpMenu, "&Help");