winmain.cpp
来自「VC++ DEMO, used for the beginners and th」· C++ 代码 · 共 38 行
CPP
38 行
// 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 + =
减小字号Ctrl + -
显示快捷键?