BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
HWND hWnd;
hInst = hInstance; // Store instance handle in our global variable
////////////////////////////////////////////////////////////////////////////////////
// adjust window's rect
RECT rt = { 0, 0, 800, 600 };
AdjustWindowRect(&rt, WS_OVERLAPPEDWINDOW, true);// MENU=true
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, rt.right - rt.left, rt.bottom - rt.top, NULL, NULL, hInstance, NULL);
...
return TRUE;
}
No comments:
Post a Comment