📄 winmain.cpp
字号:
// WinMain.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "tex.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
ProcessInfo_t * ProcessInfo = new ProcessInfo_t;
ProcessInfo->hInst = hInstance;
ProcessInfo->nCmdShow = nCmdShow;
ProcessInfo->szDlgTitle = "纹理应用";
ProcessInfo->szClassName = "COOLMAN";
if ( CreateDemoDialog(ProcessInfo) == false ) return 0;
MSG msg;
ZeroMemory(&msg,sizeof(MSG));
while(msg.message != WM_QUIT)
{
if ( PeekMessage( &msg,NULL,0,0,PM_REMOVE) )
{
TranslateMessage( &msg );
DispatchMessage(&msg);
}else
{
Render();
}
}
Shutdown();
UnregisterClass(ProcessInfo->szClassName.c_str(),ProcessInfo->hInst);
delete ProcessInfo;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -