void CMainFrame::OnViewOptions() { //CMdsEditApp *pApp = (CMdsEditApp *) AfxGetApp(); COptionsDlg optionsDlg; optionsDlg.m_bViewBlobAsString = CRec::s_bViewBlobAsString; if ( optionsDlg.DoModal() != IDOK ) { return; } if ( optionsDlg.m_bViewBlobAsString == CRec::s_bViewBlobAsString ) { return; } CRec::s_bViewBlobAsString = optionsDlg.m_bViewBlobAsString; CMdsEditListView * pListView = GetListView(); if ( pListView && pListView->m_pRec ) { pListView->Populate( pListView->m_pRec ); } }
void CMainFrame::OnMenuOptions() { COptionsDlg dlgOptions; dlgOptions.DoModal(); }
void COthelloApp::OnAppOptions() { COptionsDlg aboutDlg; aboutDlg.DoModal(); }