📄 tools.cpp
字号:
// 自动关机.cpp : 定义应用程序的类行为。
//
#include "stdafx.h"
#include "Tools.h"
#include "ToolsDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMyApp
BEGIN_MESSAGE_MAP(CToolsApp, CWinApp)
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
// CMyApp 构造
CToolsApp::CToolsApp()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}
// 唯一的一个 CMyApp 对象
CToolsApp theApp;
// CMyApp 初始化
BOOL CToolsApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControls()。否则,将无法创建窗口。
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
InitCommonControls();
CWinApp::InitInstance();
AfxEnableControlContainer();
dlg = new CToolsDlg;
m_pMainWnd = dlg;
// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
// 而不是启动应用程序的消息泵。
return dlg->Create(IDD_TOOLS_DIALOG);
}
BOOL CToolsApp::ExitInstance()
{
return CWinApp::ExitInstance();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -