-#ifdef __WXMSW__
- wxBitmap bmpWizard("wiztest.bmp", wxBITMAP_TYPE_BMP);
-#else
- wxBitmap bmpWizard(wizimage);
-#endif
+ 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");