Add wxHtmlHelpController::SetShouldPreventAppExit().

Add a method which can be used to indicate that the help window should prevent
the application from exiting and use it in the help sample to prevent it from
closing prematurely.

Closes #13046.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-03-18 09:16:14 +00:00
parent fbe7473406
commit bd45b3e176
6 changed files with 40 additions and 1 deletions

View File

@@ -86,6 +86,8 @@ bool MyApp::OnInit()
delete wxLog::SetActiveTarget(new wxLogGui);
#endif
help->SetShouldPreventAppExit(true);
help -> DisplayContents();
return true;