winmain.cpp
来自「VC++ DEMO, used for the beginners and th」· C++ 代码 · 共 34 行
CPP
34 行
// WinMain.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "Md2File.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
HWND hWnd(CreateDialog(hInstance,MAKEINTRESOURCE(IDD_MD2_SHOW),NULL,DlgProc));
ShowWindow(hWnd,nCmdShow);
UpdateWindow(hWnd);
MSG msg;
ZeroMemory(&msg,sizeof(msg));
while(msg.message != WM_QUIT)
{
if(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
{
Md2_Render();
}
}
Md2_Shutdown();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?