BEGIN_MESSAGE_MAP(CPreferencesDlg, CDialog)
//{{AFX_MSG_MAP(CPreferencesDlg)
ON_WM_SIZE()
- ON_WM_DESTROY()
ON_COMMAND(ID_HELP, OnHelpButton)
ON_BN_CLICKED(IDC_TREEOPT_HELP, OnHelpButton)
ON_NOTIFY(TVN_SELCHANGED, IDC_TREEOPT_PAGES, OnSelchangedPages)
m_pphost.OnOK();
SaveOptions();
+
+ AfxGetApp()->WriteProfileInt(_T("Settings"), _T("OptStartPage"), m_pphost.GetActiveIndex());
}
void CPreferencesDlg::OnSize(UINT nType, int cx, int cy)
}
}
-void CPreferencesDlg::OnDestroy()
-{
- CDialog::OnDestroy();
-
- AfxGetApp()->WriteProfileInt(_T("Settings"), _T("OptStartPage"), m_pphost.GetActiveIndex());
-}
-
void CPreferencesDlg::OnHelpButton()
{
theApp.ShowHelp(OptionsHelpLocation);
//{{AFX_MSG(CPreferencesDlg)
virtual BOOL OnInitDialog() override;
afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnDestroy();
afx_msg void OnHelpButton();
afx_msg void OnImportButton();
afx_msg void OnExportButton();