mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- turn back cursor on screensaver exit
- display fullscreen instead of maximized - patch by Vytis Girdzijauskas, "CMan", cman[at]cman[dot]us See issue #2583 for more details. svn path=/trunk/; revision=28492
This commit is contained in:
@@ -155,6 +155,7 @@ LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
KillTimer (hwnd, APP_TIMER);
|
||||
DeleteObject(bitmap);
|
||||
ShowCursor(TRUE);
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
}
|
||||
@@ -223,14 +224,20 @@ void InitSaver(HWND hwndParent)
|
||||
else
|
||||
{
|
||||
HWND hwnd;
|
||||
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);
|
||||
ShowCursor(FALSE);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
switch (msg)
|
||||
{
|
||||
case WM_DESTROY:
|
||||
ShowCursor(TRUE);
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
|
||||
@@ -104,13 +105,19 @@ void InitSaver(HWND hwndParent)
|
||||
else
|
||||
{
|
||||
HWND hwnd;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -192,6 +192,7 @@ LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
KillTimer (hwnd, APP_TIMER);
|
||||
free(stars);
|
||||
ShowCursor(TRUE);
|
||||
PostQuitMessage (0);
|
||||
return 0;
|
||||
}
|
||||
@@ -266,13 +267,19 @@ void InitSaver(HWND hwndParent)
|
||||
else
|
||||
{
|
||||
HWND hwnd;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user