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

📄 root.cpp

📁 WTL8.0 包含的头文件 例子
💻 CPP
字号:
// [!output PROJECT_NAME].cpp : main source file for [!output PROJECT_NAME].exe
//

#include "stdafx.h"
[!if !WTL_USE_CPP_FILES]

#include <atlframe.h>
#include <atlctrls.h>
[!if WTL_USE_VIEW && WTL_VIEWTYPE_PROPSHEET]
#define _WTL_NEW_PAGE_NOTIFY_HANDLERS
#include <atldlgs.h>
[!endif]
[!if WTL_USE_STRING && !WTL_STRING_ATL]
#include <atlmisc.h>
[!endif]
[!if WTL_VIEW_SCROLL || WTL_VIEW_ZOOM]
[!if !WTL_USE_STRING || WTL_STRING_ATL]
#include <atlmisc.h>
[!endif]
#include <atlscrl.h>
[!else]
#define _WTL_CE_NO_ZOOMSCROLL
[!endif]
[!if !WTL_FULLSCREEN]
#define _WTL_CE_NO_FULLSCREEN
[!endif]
#include <atlwince.h>
[!endif]

//?ppc
#include "resourceppc.h"
//?sp
#include "resourcesp.h"
//?end

[!if WTL_APPTYPE_SDI && WTL_USE_VIEW_CLASS]
#include "[!output WTL_VIEW_FILE].h"
[!endif]
#include "AboutDlg.h"
#include "[!output WTL_APPWND_FILE].h"

CAppModule _Module;

int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
{
	HRESULT hRes = [!output WTL_APPWND_CLASS]::ActivatePreviousInstance(hInstance, lpstrCmdLine);

	if(FAILED(hRes) || S_FALSE == hRes)
	{
		return hRes;
	}

	hRes = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
	ATLASSERT(SUCCEEDED(hRes));

	AtlInitCommonControls(ICC_DATE_CLASSES);
	SHInitExtraControls();
[!if WTL_VIEWTYPE_HTML]
	InitHTMLControl(hInstance);
[!endif]
[!if WTL_VIEWTYPE_INKX]
	InitInkX();
[!endif]
[!if WTL_VIEWTYPE_RICHINK]
	InitRichInkDLL();
[!endif]

	hRes = _Module.Init(NULL, hInstance);
	ATLASSERT(SUCCEEDED(hRes));

[!if WTL_ENABLE_AX]
	AtlAxWinInit();

[!endif]
	int nRet = [!output WTL_APPWND_CLASS]::AppRun(lpstrCmdLine, nCmdShow);

[!if WTL_ENABLE_AX]
	AtlAxWinTerm();

[!endif]
	_Module.Term();
	::CoUninitialize();

	return nRet;
}

⌨️ 快捷键说明

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