// in the application itself.
IMPLEMENT_APP(MyApp)
-// This statement initialises the whole application
-MyApp myApp;
-
MyApp::MyApp(void)
{
frame = NULL;
menu_bar->Append(help_menu, "&Help");
frame->canvas = frame->CreateCanvas(NULL, frame);
- frame->palette = myApp.CreatePalette(frame);
+ frame->palette = wxGetApp().CreatePalette(frame);
myDocManager->CreateDocument("", wxDOC_NEW);
//// Associate the menu bar with the frame
MyFrame *GetMainFrame(void)
{
- return myApp.frame;
+ return wxGetApp().frame;
}