git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60514
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Find the top-most parent window
wxWindow* wxHtmlHelpController::FindTopLevelWindow()
{
// 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)
}
bool wxHtmlHelpController::AddBook(const wxFileName& book_file, bool show_wait_msg)