wxHtmlHelpController::~wxHtmlHelpController() { if (m_Config) WriteCustomization(m_Config, m_ConfigRoot); if (m_helpWindow) DestroyHelpWindow(); }
wxHtmlHelpController::~wxHtmlHelpController() { #if wxUSE_CONFIG if (m_Config) WriteCustomization(m_Config, m_ConfigRoot); #endif // wxUSE_CONFIG if (m_helpWindow) DestroyHelpWindow(); }
void wxHtmlHelpController::OnCloseFrame(wxCloseEvent& evt) { if (m_Config) WriteCustomization(m_Config, m_ConfigRoot); evt.Skip(); OnQuit(); if ( m_helpWindow ) m_helpWindow->SetController(NULL); m_helpWindow = NULL; m_helpDialog = NULL; m_helpFrame = NULL; }
void wxHtmlHelpController::OnCloseWindow(wxCloseEvent& event) { int a, b; m_Cfg.navig_on = m_Splitter -> IsSplit(); if (m_Cfg.navig_on) m_Cfg.sashpos = m_Splitter -> GetSashPosition(); m_Frame -> GetPosition(&a, &b); m_Cfg.x = a, m_Cfg.y = b; m_Frame -> GetSize(&a, &b); m_Cfg.w = a, m_Cfg.h = b; if (m_Config) { WriteCustomization(m_Config, m_ConfigRoot); m_HtmlWin -> WriteCustomization(m_Config, m_ConfigRoot); } m_Frame = NULL; event.Skip(); }