X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59af881e445d3343b0ab5ed24f92d21a524c5a9f..fb5246bead0df931f25bd73c9a03c356b180fcd1:/include/wx/msw/helpbest.h diff --git a/include/wx/msw/helpbest.h b/include/wx/msw/helpbest.h index 452a074c2c..a05c4e14de 100644 --- a/include/wx/msw/helpbest.h +++ b/include/wx/msw/helpbest.h @@ -12,10 +12,6 @@ #ifndef _WX_HELPBEST_H_ #define _WX_HELPBEST_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "helpbest.h" -#endif - #if wxUSE_HELP && wxUSE_MS_HTML_HELP && defined(__WIN95__) \ && wxUSE_WXHTML_HELP && !defined(__WXUNIVERSAL__) @@ -24,8 +20,8 @@ class WXDLLIMPEXP_HTML wxBestHelpController: public wxHelpControllerBase { public: - wxBestHelpController() - : m_helpControllerType( wxUseNone ), + wxBestHelpController(wxWindow* parentWindow = NULL) + : wxHelpControllerBase( parentWindow ), m_helpControllerType( wxUseNone ), m_helpController( NULL ) { } @@ -102,6 +98,12 @@ public: newFrameEachTime ); } + /// Set the window that can optionally be used for the help window's parent. + virtual void SetParentWindow(wxWindow* win) { m_helpController->SetParentWindow(win); } + + /// Get the window that can optionally be used for the help window's parent. + virtual wxWindow* GetParentWindow() const { return m_helpController->GetParentWindow(); } + protected: // Append/change extension if necessary. wxString GetValidFilename(const wxString& file) const;