- frame = new MyFrame((wxFrame *)NULL, -1, wxT("SVG Demo"),
- wxPoint(-1, -1), wxSize(500, 400),
- wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);
-
-
- // Make a menubar
- wxMenu *file_menu = new wxMenu;
-
- file_menu->Append(MDI_NEW_WINDOW, wxT("&New test\tCtrl+N"));
- file_menu->Append(MDI_QUIT, wxT("&Exit\tAlt+X"));
-
- wxMenu *help_menu = new wxMenu;
- help_menu->Append(MDI_ABOUT, wxT("&About"));
-
- wxMenuBar *menu_bar = new wxMenuBar;
-
- menu_bar->Append(file_menu, wxT("&File"));
- menu_bar->Append(help_menu, wxT("&Help"));
-
- // Associate the menu bar with the frame
- frame->SetMenuBar(menu_bar);
-
-#if wxUSE_STATUSBAR
- frame->CreateStatusBar();
-#endif // wxUSE_STATUSBAR
+ MyFrame* frame = new MyFrame((wxFrame *)NULL, -1, wxT("SVG Demo"),
+ wxDefaultPosition, wxSize(500, 400),
+ wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);