STEP_API void WINAPI STEPShowOptionDialog(HWND hWnd) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); CDlgSetup dlg1; CPropertySheet page; dlg1.m_bGenreListSelect = bOptGenreListSelect; page.AddPage(&dlg1); page.SetTitle(CString(STEPGetPluginName()) + " オプション設定"); if (page.DoModal() == IDOK) { bOptGenreListSelect = dlg1.m_bGenreListSelect ? true : false; WritePrivateProfileString("APE", "GenreListSelect", bOptGenreListSelect ? "1" : "0", strINI); } }
BOOL CSearchResultDlg::OnSetActive() { CPropertySheet *wiz = (CPropertySheet *) GetParent(); wiz->SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT); int n = getUdpSession()->sessionCount; if (n > 0) { CString str; str.Format(IDS_TITLE_SEARCH_RESULT, n); wiz->SetTitle(str); } if (!isActiveFromNext) { m_ctlResult.DeleteAllItems(); deleteResults(); OnSearchNext(); } return CPropertyPage::OnSetActive(); }