cbuttonst_demo.cpp
来自「《突破Visual C++.NET编程实例五十讲+源文件,初学者学习的好东东!」· C++ 代码 · 共 60 行
CPP
60 行
#include "stdafx.h"
#include "CButtonST_demo.h"
#include "CButtonST_Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CButtonST_App
BEGIN_MESSAGE_MAP(CButtonST_App, CWinApp)
//{{AFX_MSG_MAP(CButtonST_App)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
// ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
// CButtonST_App 构造
CButtonST_App::CButtonST_App()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}
// 唯一的一个 CComputerApp 对象
CButtonST_App theApp;
// CComputerApp 初始化
BOOL CButtonST_App::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControls()。否则,将无法创建窗口。
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
CButtonST_Dlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
// 而不是启动应用程序的消息泵。
return FALSE;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?