/////////////////////////////////////////////////////////////////////////////
-// Name: helpfrm.h
+// Name: wx/html/helpfrm.h
// Purpose: wxHtmlHelpFrame
// Notes: Based on htmlhelp.cpp, implementing a monolithic
// HTML Help controller class, by Vaclav Slavik
// Override to add custom buttons to the toolbar
virtual void AddToolbarButtons(wxToolBar* WXUNUSED(toolBar), int WXUNUSED(style)) {}
+ void SetShouldPreventAppExit(bool enable);
+
// we don't want to prevent the app from closing just because a help window
// remains opened
- virtual bool ShouldPreventAppExit() const { return false; }
+ virtual bool ShouldPreventAppExit() const { return m_shouldPreventAppExit; }
protected:
void Init(wxHtmlHelpData* data = NULL);
wxString m_TitleFormat; // title of the help frame
wxHtmlHelpWindow *m_HtmlHelpWin;
wxHtmlHelpController* m_helpController;
+ bool m_shouldPreventAppExit;
private: