- frame = new MyFrame((wxFrame *)NULL, -1, wxT("SVG Demo"),
- wxPoint(-1, -1), wxSize(500, 400),
- wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);
-
+ MyFrame* frame = new MyFrame((wxFrame *)NULL, -1, wxT("SVG Demo"),
+ wxDefaultPosition, wxSize(500, 400),
+ wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);
+
+ frame->Show(true);
+
+ SetTopWindow(frame);
+
+ return true;
+}
+
+
+// ---------------------------------------------------------------------------
+// MyFrame
+// ---------------------------------------------------------------------------
+
+// Define my frame constructor
+MyFrame::MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
+ const wxPoint& pos, const wxSize& size, const long style)
+ : wxMDIParentFrame(parent, id, title, pos, size, style)
+{
+ m_nWinCreated = 0;
+
+ SetIcon(wxICON(sample));