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;
}
// Display window and start pumping messages
ShowWindow(hMainWindow, SW_SHOW);
- SetCursor(NULL);
+ if (!hParent)
+ SetCursor(NULL);
while (GetMessage(&msg, NULL, 0, 0))
DispatchMessage(&msg);
{
LPTSTR p;
+ UNREFERENCED_PARAMETER(nCmdShow);
+ UNREFERENCED_PARAMETER(hPrevInst);
+
hMainInstance = hInst;
// Parse the arguments