X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..a84ece11fffdde5d1bbd254ba58ac3cee79c2e77:/docs/latex/wx/tapp.tex diff --git a/docs/latex/wx/tapp.tex b/docs/latex/wx/tapp.tex index c5e0322a72..f9f7ef4026 100644 --- a/docs/latex/wx/tapp.tex +++ b/docs/latex/wx/tapp.tex @@ -18,7 +18,7 @@ An application closes by destroying all windows. Because all frames must be destroyed for the application to exit, it is advisable to use parent frames wherever possible when creating new frames, so that deleting the top level frame will automatically delete child frames. The alternative -is to explicitly delete child frames in the top-level frame's \helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow}\rtfsp +is to explicitly delete child frames in the top-level frame's \helpref{wxCloseEvent}{wxcloseevent}\rtfsp handler. In emergencies the \helpref{wxExit}{wxexit} function can be called to kill the @@ -27,15 +27,15 @@ application. An example of defining an application follows: \begin{verbatim} -class DerivedApp: public wxApp +class DerivedApp : public wxApp { - public: - bool OnInit(void); +public: + virtual bool OnInit(); }; IMPLEMENT_APP(DerivedApp) -bool DerivedApp::OnInit(void) +bool DerivedApp::OnInit() { wxFrame *the_frame = new wxFrame(NULL, argv[0]); ...