// Find the top-most parent window
wxWindow* wxHtmlHelpController::FindTopLevelWindow()
{
- wxWindow* parent = m_helpWindow;
- while (parent && !parent->IsTopLevel())
- {
- parent = parent->GetParent();
- }
- return parent;
+ return wxGetTopLevelParent(m_helpWindow);
}
bool wxHtmlHelpController::AddBook(const wxFileName& book_file, bool show_wait_msg)
{
m_Config = wxConfigBase::Get(false);
if (m_Config != NULL)
- m_ConfigRoot = _T("wxWindows/wxHtmlHelpController");
+ m_ConfigRoot = wxT("wxWindows/wxHtmlHelpController");
}
if (m_FrameStyle & wxHF_DIALOG)