You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
692 B
26 lines
692 B
#include <windows.h>
|
|
|
|
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
|
{
|
|
/*×¢²á´°¿Ú*/
|
|
WNDCLASSEX wndclass;
|
|
wndclass.cbClsExtra = 0;
|
|
wndclass.cbSize = sizeof(WNDCLASSEX);
|
|
wndclass.cbWndExtra = 0;
|
|
wndclass.hbrBackground = NULL;
|
|
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
|
|
wndclass.hIcon = NULL;
|
|
wndclass.hIconSm = NULL;
|
|
wndclass.hInstance = hInstance;
|
|
wndclass.lpfnWndProc = NULL;
|
|
wndclass.lpszClassName = L"GLWindow";
|
|
wndclass.lpszMenuName = NULL;
|
|
wndclass.style = CS_VREDRAW | CS_HREDRAW;
|
|
ATOM atom = RegisterClassEx(&wndclass);
|
|
if (!atom) {
|
|
MessageBox(NULL, L"Register Fail", L"Error", MB_OK);
|
|
return 0;
|
|
}
|
|
|
|
return 0;
|
|
}
|