X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/032e27aad0b1b01bcff49de286dd2120a8aa1177..6d6de9f10f812d5e375d1283b12db490a6477b08:/docs/doxygen/overviews/app.h diff --git a/docs/doxygen/overviews/app.h b/docs/doxygen/overviews/app.h index 94490c26c0..261aa5efbf 100644 --- a/docs/doxygen/overviews/app.h +++ b/docs/doxygen/overviews/app.h @@ -3,10 +3,10 @@ // Purpose: topic overview // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -/*! +/** @page overview_app wxApp Overview @@ -27,8 +27,7 @@ the wxApp::OnInit member defined for a class derived from wxApp. @e OnInit will usually create a top window as a bare minimum. Unlike in earlier versions of wxWidgets, OnInit does not return a frame. Instead it returns a boolean value which indicates whether processing should continue (@true) or not -(@false). You call wxApp::SetTopWindow to let wxWidgets know about the top -window. +(@false). Note that the program's command line arguments, represented by @e argc and @e argv, are available from within wxApp member functions. @@ -59,7 +58,6 @@ bool DerivedApp::OnInit() wxFrame *the_frame = new wxFrame(NULL, ID_MYFRAME, argv[0]); ... the_frame->Show(true); - SetTopWindow(the_frame); return true; }