else
{
style = WS_POPUP;
- rc.right = GetSystemMetrics(SM_CXSCREEN);
- rc.bottom = GetSystemMetrics(SM_CYSCREEN);
+ rc.right = GetSystemMetrics(SM_CXVIRTUALSCREEN);
+ rc.bottom = GetSystemMetrics(SM_CYVIRTUALSCREEN);
style |= WS_VISIBLE;
}
0, 0, rc.right, rc.bottom, hParent, NULL,
hMainInstance, NULL);
+ if(!hMainWindow)
+ return 1;
+
// Display window and start pumping messages
- if (hMainWindow)
- {
- ShowWindow(hMainWindow, SW_SHOW);
+ ShowWindow(hMainWindow, SW_SHOW);
+ if (!hParent)
SetCursor(NULL);
- while (GetMessage(&msg, NULL, 0, 0))
- DispatchMessage(&msg);
- }
+ while (GetMessage(&msg, NULL, 0, 0))
+ DispatchMessage(&msg);
return msg.wParam;
}
{
LPTSTR p;
+ UNREFERENCED_PARAMETER(nCmdShow);
+ UNREFERENCED_PARAMETER(hPrevInst);
+
hMainInstance = hInst;
// Parse the arguments