git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52472
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// we don't want to prevent the app from closing just because a help window
// remains opened
- virtual bool ShouldPreventAppExit() const;
+ virtual bool ShouldPreventAppExit() const { return false; }
protected:
void Init(wxHtmlHelpData* data = NULL);
help -> DisplayContents();
- SetTopWindow(help->GetFrame());
-
return true;
}
#include "wx/fontenum.h"
#include "wx/artprov.h"
#include "wx/spinctrl.h"
-#include "wx/app.h"
IMPLEMENT_DYNAMIC_CLASS(wxHtmlHelpFrame, wxFrame)
}
#endif
-// we don't want to prevent the app from closing just because a help window
-// remains opened
-bool wxHtmlHelpFrame::ShouldPreventAppExit() const
-{
- return (wx_const_cast(wxHtmlHelpFrame*, this) == wxTheApp->GetTopWindow());
-}
-
#endif // wxUSE_WXHTML_HELP
m_helpController->DisplayContents();
- SetTopWindow(m_helpController->GetFrame());
-
return true;
}