}
else
{
- hwnd = CreateWindow(APPNAME, APPNAME,
- WS_VISIBLE | WS_POPUP | WS_EX_TOPMOST,
- 0, 0,
- GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
- HWND_DESKTOP, 0,
- hInstance, NULL);
- ShowWindow(hwnd, SW_SHOWMAXIMIZED);
+ hwnd = CreateWindowEx(WS_EX_TOPMOST,
+ APPNAME,
+ APPNAME,
+ WS_VISIBLE | WS_POPUP,
+ 0,
+ 0,
+ GetSystemMetrics(SM_CXSCREEN),
+ GetSystemMetrics(SM_CYSCREEN),
+ HWND_DESKTOP,
+ 0,
+ hInstance,
+ NULL);
+
+ SetWindowPos(hwnd,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOSIZE | SWP_SHOWWINDOW);
+
ShowCursor(FALSE);
fullscreen = TRUE;
}