⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customctrl.cpp

📁 "Visual C++.net实践与提高-深入Windows编程"的源代码
💻 CPP
字号:
// CustomCtrl.cpp : 定义应用程序的类行为。
//

#include "stdafx.h"
#include "CustomCtrl.h"
#include "CustomCtrlDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CCustomCtrlApp

BEGIN_MESSAGE_MAP(CCustomCtrlApp, CWinApp)
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()


// CCustomCtrlApp 构造

CCustomCtrlApp::CCustomCtrlApp()
{
	// TODO: 在此处添加构造代码,
	// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CCustomCtrlApp 对象

CCustomCtrlApp theApp;


// CCustomCtrlApp 初始化

BOOL CCustomCtrlApp::InitInstance()
{
	CWinApp::InitInstance();

	AfxEnableControlContainer();


	CCustomCtrlDlg dlg;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO:在此放置处理何时用“确定”来关闭
		//对话框的代码
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO:在此放置处理何时用“取消”来关闭
		//对话框的代码
	}

	// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
	// 而不是启动应用程序的消息泵。
	return FALSE;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -