Example #1
0
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();
}
Example #2
0
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 );
	}
}
Example #3
0
// --------------------------------------------------------------------------------------------
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;
	}
}
Example #4
0
void CMainFrame::OnMenuOptions()
{
    COptionsDlg dlgOptions;
    dlgOptions.DoModal();
}
Example #5
0
void COthelloApp::OnAppOptions()
{
	COptionsDlg aboutDlg;
	aboutDlg.DoModal();
}