INT_PTR WhatsAppProto::SvcCreateAccMgrUI(WPARAM wParam, LPARAM lParam) { COptionsDlg *pDlg = new COptionsDlg(this, IDD_ACCMGRUI); pDlg->SetParent((HWND)lParam); pDlg->Show(); return (INT_PTR)pDlg->GetHwnd(); }
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 ); } }
// -------------------------------------------------------------------------------------------- COptionsDlg* COptionsDlg::CreateInstance (UINT uiDlg, LPCSTR pcCaption, OPTIONSRESULT caSelInfo, ResourceFile& rRF) { try { COptionsDlg* pDlg = NULL; pDlg = new COptionsDlg (ResID (uiDlg, &rRF), pcCaption, caSelInfo); if (NULL == pDlg || !pDlg->FInit()) { DELETE_OBJ (pDlg); return NULL; } return pDlg; } catch (...) { return NULL; } }
void CMainFrame::OnMenuOptions() { COptionsDlg dlgOptions; dlgOptions.DoModal(); }
void COthelloApp::OnAppOptions() { COptionsDlg aboutDlg; aboutDlg.DoModal(); }