Added parent window parameter to wxHelpController constructor
and added SetParentWindow/GetParentWindow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,7 +43,8 @@ FORCE_LINK(wxhtml_chm_support)
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxHtmlHelpController, wxHelpControllerBase)
|
||||
|
||||
wxHtmlHelpController::wxHtmlHelpController(int style)
|
||||
wxHtmlHelpController::wxHtmlHelpController(int style, wxWindow* parentWindow):
|
||||
wxHelpControllerBase(parentWindow)
|
||||
{
|
||||
m_helpFrame = NULL;
|
||||
m_Config = NULL;
|
||||
@@ -144,7 +145,7 @@ void wxHtmlHelpController::CreateHelpWindow()
|
||||
if (m_Config)
|
||||
m_helpFrame->UseConfig(m_Config, m_ConfigRoot);
|
||||
|
||||
m_helpFrame->Create(NULL, wxID_HTML_HELPFRAME, wxEmptyString, m_FrameStyle);
|
||||
m_helpFrame->Create(GetParentWindow(), wxID_HTML_HELPFRAME, wxEmptyString, m_FrameStyle);
|
||||
m_helpFrame->SetTitleFormat(m_titleFormat);
|
||||
|
||||
m_helpFrame->Show(true);
|
||||
|
Reference in New Issue
Block a user