The only thing you must do is create wxConfig object and call UseConfig.
+If you do not use {\it UseConfig}, wxHtmlHelpController will use
+default wxConfig object if available (for details see
+\helpref{wxConfigBase::Get}{wxconfigbaseget} and
+\helpref{wxConfigBase::Set}{wxconfigbaseset}).
+
\membersection{wxHtmlHelpController::WriteCustomization}\label{wxhtmlhelpcontrollerwritecustomization}
\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{wxString }{path = wxEmptyString}}
m_helpFrame->Raise();
return ;
}
- m_helpFrame = new wxHtmlHelpFrame(&m_helpData);
+ if (m_Config == NULL)
+ {
+ m_Config = wxConfigBase::Get(FALSE);
+ if (m_Config != NULL)
+ m_ConfigRoot = _T("wxWindows/wxHtmlHelpController");
+ }
+
+ m_helpFrame = new wxHtmlHelpFrame(&m_helpData);
m_helpFrame->PushEventHandler(this);
+
if (m_Config)
m_helpFrame->UseConfig(m_Config, m_ConfigRoot);
+
m_helpFrame->Create(NULL, wxID_HTML_HELPFRAME, wxEmptyString, m_FrameStyle);
m_helpFrame->RefreshLists(show_progress);
m_helpFrame->SetTitleFormat(m_titleFormat);