frame->Draw(dc,TRUE);
}
-// Define the behaviour for the frame closing
-// - must delete all frames except for the main one.
-bool MyFrame::OnClose(void)
-{
- Show(FALSE);
-
- return TRUE;
-}
SizerFrame::SizerFrame(wxFrame *frame, char *title, int x, int y, int w, int h):
wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
panel->Layout();
}
-bool SizerFrame::OnClose(void)
-{
- Show(FALSE);
-
- return TRUE;
-}
-