?? dingshi2.cpp
字號:
// dingshi2.cpp : 定義應用程序的類行為。
//
#include "stdafx.h"
#include "dingshi2.h"
#include "dingshi2Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Cdingshi2App
BEGIN_MESSAGE_MAP(Cdingshi2App, CWinApp)
END_MESSAGE_MAP()
// Cdingshi2App 構造
Cdingshi2App::Cdingshi2App()
: CWinApp()
{
// TODO: 在此處添加構造代碼,
// 將所有重要的初始化放置在 InitInstance 中
}
// 唯一的一個 Cdingshi2App 對象
Cdingshi2App theApp;
// Cdingshi2App 初始化
BOOL Cdingshi2App::InitInstance()
{
#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
// 在應用程序初始化期間,應調用一次 SHInitExtraControls 以初始化
// 所有 Windows Mobile 特定控件,如 CAPEDIT 和 SIPPREF。
SHInitExtraControls();
#endif // WIN32_PLATFORM_PSPC || WIN32_PLATFORM_WFSP
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
// 標準初始化
// 如果未使用這些功能并希望減小
// 最終可執行文件的大小,則應移除下列
// 不需要的特定初始化例程
// 更改用于存儲設置的注冊表項
// TODO: 應適當修改該字符串,
// 例如修改為公司或組織名
SetRegistryKey(_T("應用程序向導生成的本地應用程序"));
Cdingshi2Dlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此處放置處理何時用“確定”來關閉
// 對話框的代碼
}
// 由于對話框已關閉,所以將返回 FALSE 以便退出應用程序,
// 而不是啟動應用程序的消息泵。
return FALSE;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -