From f25956512359e60cd8161165a83cc4309c1adfeb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Aug 2016 18:32:54 +0200 Subject: [PATCH] Improve description of wxIMPLEMENT_APP() on the "Hello world" page Also add the missing semicolon after it, so that if anybody copies and pastes this line from the documentation, it actually would compile. --- docs/doxygen/overviews/helloworld.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/doxygen/overviews/helloworld.h b/docs/doxygen/overviews/helloworld.h index 7a06ccf66a..8663e0786a 100644 --- a/docs/doxygen/overviews/helloworld.h +++ b/docs/doxygen/overviews/helloworld.h @@ -107,11 +107,12 @@ wxEND_EVENT_TABLE() @endcode As in all programs there must be a "main" function. Under wxWidgets main is -implemented using this macro, which creates an application instance and starts -the program. +implemented inside ::wxIMPLEMENT_APP() macro, which creates an application +instance of the specified class and starts running the GUI event loop. It is +used simply as: @code -wxIMPLEMENT_APP(MyApp) +wxIMPLEMENT_APP(MyApp); @endcode As mentioned above, wxApp::OnInit() is called upon startup and should be used