您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ AfxEnableControlContainer函数代码示例

51自学网 2021-06-01 19:45:54
  C++
这篇教程C++ AfxEnableControlContainer函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中AfxEnableControlContainer函数的典型用法代码示例。如果您正苦于以下问题:C++ AfxEnableControlContainer函数的具体用法?C++ AfxEnableControlContainer怎么用?C++ AfxEnableControlContainer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了AfxEnableControlContainer函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: CSingleDocTemplate

BOOL CFaceEncryptApp::InitInstance(){    //AfxMessageBox("InitInstance()");	{	// BLOCK: doc template registration		// Register the document template.  Document templates serve		// as the connection between documents, frame windows and views.		// Attach this form to another document or frame window by changing		// the document or frame class in the constructor below.		CSingleDocTemplate* pNewDocTemplate = new CSingleDocTemplate(			IDR_CHOOSEOPERATION_TMPL,			RUNTIME_CLASS(CFaceEncryptDoc),		// document class			RUNTIME_CLASS(CMainFrame),		// frame class			RUNTIME_CLASS(CChooseOperation));		// view class		AddDocTemplate(pNewDocTemplate);	}	AfxEnableControlContainer();	// Standard initialization	// If you are not using these features and wish to reduce the size	//  of your final executable, you should remove from the following	//  the specific initialization routines you do not need.#ifdef _AFXDLL	Enable3dControls();			// Call this when using MFC in a shared DLL#else	Enable3dControlsStatic();	// Call this when linking to MFC statically#endif	// Change the registry key under which our settings are stored.	// TODO: You should modify this string to be something appropriate	// such as the name of your company or organization.	SetRegistryKey(_T("Local AppWizard-Generated Applications"));	LoadStdProfileSettings();  // Load standard INI file options (including MRU)	// Register the application's document templates.  Document templates	//  serve as the connection between documents, frame windows and views.	CSingleDocTemplate* pDocTemplate;	pDocTemplate = new CSingleDocTemplate(		IDR_MAINFRAME,		RUNTIME_CLASS(CFaceEncryptDoc),		RUNTIME_CLASS(CMainFrame),       // main SDI frame window		RUNTIME_CLASS(CFaceEncryptView));	AddDocTemplate(pDocTemplate);	// Enable DDE Execute open	EnableShellOpen();	RegisterShellFileTypes(TRUE);	// Parse command line for standard shell commands, DDE, file open	CCommandLineInfo cmdInfo;	ParseCommandLine(cmdInfo);	// Dispatch commands specified on the command line	if (!ProcessShellCommand(cmdInfo))		return FALSE;	// The one and only window has been initialized, so show and update it.	m_pMainWnd->ShowWindow(SW_SHOW);	m_pMainWnd->UpdateWindow();	// Enable drag/drop open	m_pMainWnd->DragAcceptFiles();	return TRUE;}
开发者ID:zephyrer,项目名称:faceencrypt,代码行数:67,


示例2: sizeof

BOOL CCheckExamApp::InitInstance(){	// 如果一个运行在 Windows XP 上的应用程序清单指定要	// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,	//则需要 InitCommonControlsEx()。  否则,将无法创建窗口。	INITCOMMONCONTROLSEX InitCtrls;	InitCtrls.dwSize = sizeof(InitCtrls);	// 将它设置为包括所有要在应用程序中使用的	// 公共控件类。	InitCtrls.dwICC = ICC_WIN95_CLASSES;	InitCommonControlsEx(&InitCtrls);	CWinApp::InitInstance();	AfxEnableControlContainer();	// 创建 shell 管理器,以防对话框包含	// 任何 shell 树视图控件或 shell 列表视图控件。	CShellManager *pShellManager = new CShellManager;	// 激活“Windows Native”视觉管理器,以便在 MFC 控件中启用主题	CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));	// 标准初始化	// 如果未使用这些功能并希望减小	// 最终可执行文件的大小,则应移除下列	// 不需要的特定初始化例程	// 更改用于存储设置的注册表项	// TODO: 应适当修改该字符串,	// 例如修改为公司或组织名	SetRegistryKey(_T("应用程序向导生成的本地应用程序"));	CCheckExamDlg dlg;	m_pMainWnd = &dlg;	INT_PTR nResponse = dlg.DoModal();	if (nResponse == IDOK)	{		// TODO: 在此放置处理何时用		//  “确定”来关闭对话框的代码	}	else if (nResponse == IDCANCEL)	{		// TODO: 在此放置处理何时用		//  “取消”来关闭对话框的代码	}	else if (nResponse == -1)	{		TRACE(traceAppMsg, 0, "警告: 对话框创建失败,应用程序将意外终止。/n");		TRACE(traceAppMsg, 0, "警告: 如果您在对话框上使用 MFC 控件,则无法 #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS。/n");	}	// 删除上面创建的 shell 管理器。	if (pShellManager != NULL)	{		delete pShellManager;	}	// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,	//  而不是启动应用程序的消息泵。	return FALSE;}
开发者ID:kevin12125,项目名称:Exam-mark,代码行数:62,


示例3: ParseCommandLine

BOOL CFPAnalysisApp::InitInstance(){		// CG: The following block was added by the Splash Screen component./	{/		CCommandLineInfo cmdInfo;/		ParseCommandLine(cmdInfo);//		CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);/	}			AfxEnableControlContainer();	//m_dlgSkin.Create(IDD_SKINDIALOG_DIALOG);    //m_pSkin = m_dlgSkin.GetDlgItem(IDC_SKIN2)->GetControlUnknown(); 	//m_dlgAgent.Create(IDD_AGENT_DIALOG);    //m_theAgent.Probe(&m_dlgAgent.m_Agent);	// Standard initialization	// If you are not using these features and wish to reduce the size	//  of your final executable, you should remove from the following	//  the specific initialization routines you do not need.#ifdef _AFXDLL	Enable3dControls();			// Call this when using MFC in a shared DLL#else	Enable3dControlsStatic();	// Call this when linking to MFC statically#endif	// Change the registry key under which our settings are stored.	// TODO: You should modify this string to be something appropriate	// such as the name of your company or organization.	SetRegistryKey(_T("Fingerprint Analysis 1.00"));	LoadStdProfileSettings(4);  // Load standard INI file options (including MRU)	// Register the application's document templates.  Document templates	//  serve as the connection between documents, frame windows and views.	CMultiDocTemplate* pDocTemplate;	pDocTemplate = new CMultiDocTemplate(		IDR_FPANALTYPE,		RUNTIME_CLASS(CFPAnalysisDoc),		RUNTIME_CLASS(CChildFrame), // custom MDI child frame		RUNTIME_CLASS(CFPAnalysisView));	AddDocTemplate(pDocTemplate);	EnableShellOpen(); 	// create main MDI Frame window	CMainFrame* pMainFrame = new CMainFrame;	if (!pMainFrame->LoadFrame(IDR_MAINFRAME))		return FALSE;	m_pMainWnd = pMainFrame;	//Drag & Drop support	m_pMainWnd->DragAcceptFiles();		// Parse command line for standard shell commands, DDE, file open	CCommandLineInfo cmdInfo;	ParseCommandLine(cmdInfo);	// no new document at start-up	cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;	// Dispatch commands specified on the command line	if (!ProcessShellCommand(cmdInfo))		return FALSE; 	// The main window has been initialized, so show and update it.	pMainFrame->ShowWindow(m_nCmdShow);	pMainFrame->CenterWindow();	pMainFrame->UpdateWindow();	pMainFrame->SetTitle("Fingerprint Analysis");	return TRUE;}
开发者ID:Flora0409,项目名称:fingerprint-analysis,代码行数:85,


示例4: AfxEnableControlContainer

BOOL CLibraryApp::InitInstance(){	AfxEnableControlContainer();	// Standard initialization	// If you are not using these features and wish to reduce the size	//  of your final executable, you should remove from the following	//  the specific initialization routines you do not need.#ifdef _AFXDLL	Enable3dControls();			// Call this when using MFC in a shared DLL#else	Enable3dControlsStatic();	// Call this when linking to MFC statically#endif	// Change the registry key under which our settings are stored.	// TODO: You should modify this string to be something appropriate	// such as the name of your company or organization.	SetRegistryKey(_T("Local AppWizard-Generated Applications"));	LoadStdProfileSettings();  // Load standard INI file options (including MRU)	//Login Dialog	CLoginDlg cLoginDlg;	/*	if(cLoginDlg.DoModal() != IDOK)		return false;	*/	// Register the application's document templates.  Document templates	//  serve as the connection between documents, frame windows and views.	CSingleDocTemplate* pDocTemplate;	pDocTemplate = new CSingleDocTemplate(		IDR_MAINFRAME,		RUNTIME_CLASS(CLibraryDoc),		RUNTIME_CLASS(CMainFrame),       // main SDI frame window		RUNTIME_CLASS(CLibraryView));	AddDocTemplate(pDocTemplate);	// Parse command line for standard shell commands, DDE, file open	CCommandLineInfo cmdInfo;	ParseCommandLine(cmdInfo);	// Dispatch commands specified on the command line	if (!ProcessShellCommand(cmdInfo))		return FALSE;	if(!cLoginDlg.IsUserType())	{		CMenu *menu = m_pMainWnd->GetMenu();		menu->DeleteMenu(0,MF_BYPOSITION);		m_pMainWnd->DrawMenuBar();				//
C++ AfxExtractSubString函数代码示例
C++ AfxBeginThread函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。