From: Vadim Zeitlin Date: Sun, 28 May 2006 23:07:02 +0000 (+0000) Subject: allow specifying the style for wxHtmlHelpController used as fallback by wxBestHelpCon... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c756ac814f3206267c2e771ad0447bb35596dda allow specifying the style for wxHtmlHelpController used as fallback by wxBestHelpController (patch 1485669) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/helpbest.h b/include/wx/msw/helpbest.h index 95b128084c..b62979af4d 100644 --- a/include/wx/msw/helpbest.h +++ b/include/wx/msw/helpbest.h @@ -20,9 +20,12 @@ class WXDLLIMPEXP_HTML wxBestHelpController: public wxHelpControllerBase { public: - wxBestHelpController(wxWindow* parentWindow = NULL) - : wxHelpControllerBase( parentWindow ), m_helpControllerType( wxUseNone ), - m_helpController( NULL ) + wxBestHelpController(wxWindow* parentWindow = NULL, + int style = wxHF_DEFAULT_STYLE) + : wxHelpControllerBase(parentWindow), + m_helpControllerType(wxUseNone), + m_helpController(NULL), + m_style(style) { } @@ -113,6 +116,7 @@ protected: HelpControllerType m_helpControllerType; wxHelpControllerBase* m_helpController; + int m_style; DECLARE_DYNAMIC_CLASS(wxBestHelpController) DECLARE_NO_COPY_CLASS(wxBestHelpController) diff --git a/src/msw/helpbest.cpp b/src/msw/helpbest.cpp index 3782a29354..3605ea3dac 100644 --- a/src/msw/helpbest.cpp +++ b/src/msw/helpbest.cpp @@ -51,7 +51,8 @@ bool wxBestHelpController::Initialize( const wxString& filename ) delete chm; // try wxHtmlHelpController - wxHtmlHelpController* html = new wxHtmlHelpController(wxHF_DEFAULT_STYLE, m_parentWindow); + wxHtmlHelpController * + html = new wxHtmlHelpController(m_style, m_parentWindow); m_helpControllerType = wxUseHtmlHelp; if( html->Initialize( GetValidFilename( filename ) ) )