+ help.Display(wxT("Test HELPFILE"));
+ }
+
+ void MyFrame::OnClose(wxCloseEvent& event)
+ {
+ // Close the help frame; this will cause the config data to
+ // get written.
+ if ( help.GetFrame() ) // returns NULL if no help frame active
+ help.GetFrame()->Close(true);
+ // now we can safely delete the config pointer
+ event.Skip();
+ delete wxConfig::Set(NULL);