+
+// ----------------------------------------------------------------------------
+// main frame
+// ----------------------------------------------------------------------------
+
+
+// frame constructor
+ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
+ : wxFrame((wxFrame *)NULL, -1, title, pos, size), help()
+ {
+ // create a menu bar
+ wxMenu *menuFile = new wxMenu;
+
+ menuFile->Append(Minimal_Help, "&Help");
+ menuFile->Append(Minimal_Quit, "E&xit");
+
+ // now append the freshly created menu to the menu bar...
+ wxMenuBar *menuBar = new wxMenuBar;
+ menuBar->Append(menuFile, "&File");
+
+ // ... and attach this menu bar to the frame
+ SetMenuBar(menuBar);
+
+ config = new wxConfig("wxHTMLhelp");
+
+ help.UseConfig(config);
+ help.AddBook("helpfiles/testing.hhp");
+ }
+
+
+// event handlers
+
+ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))