Removed lots of OnClose functions; doc'ed OnCloseWindow better;
MM_... -> wxMM_... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -244,14 +244,6 @@ void MyWindow::OnPaint(wxPaintEvent& WXUNUSED(event) )
|
||||
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))
|
||||
@@ -346,10 +338,3 @@ void SizerFrame::OnSize(wxSizeEvent& event)
|
||||
panel->Layout();
|
||||
}
|
||||
|
||||
bool SizerFrame::OnClose(void)
|
||||
{
|
||||
Show(FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,6 @@ class MyFrame: public wxFrame
|
||||
MyWindow *canvas;
|
||||
MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
|
||||
void OnSize(wxSizeEvent& event);
|
||||
bool OnClose(void);
|
||||
void Draw(wxDC& dc, bool draw_bitmaps = TRUE);
|
||||
|
||||
void LoadFile(wxCommandEvent& event);
|
||||
@@ -68,7 +67,6 @@ class SizerFrame: public wxFrame
|
||||
wxPanel *panel;
|
||||
SizerFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
|
||||
void OnSize(wxSizeEvent& event);
|
||||
bool OnClose(void);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
Reference in New Issue
Block a user