#include <wx/wx.h>
#endif
-#if !USE_DOC_VIEW_ARCHITECTURE
-#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
+#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif
#include "ogledit.h"
// 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;
}