mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
[MSGINA][SHELL32]: Now that CORE-11979 is fixed, automatically close the logoff/shutdown dialog as soon as the user deactivates the window (focus lost) by e.g. pressing Alt-Tab.
svn path=/trunk/; revision=72720
This commit is contained in:
parent
a1895a9da6
commit
99dcff252e
2 changed files with 14 additions and 0 deletions
|
@ -299,6 +299,13 @@ ExitWindowsDialogShellProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_ACTIVATE:
|
||||||
|
{
|
||||||
|
if (LOWORD(wParam) == WA_INACTIVE)
|
||||||
|
EndDialog(hWnd, 0);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
{
|
{
|
||||||
PAINTSTRUCT ps;
|
PAINTSTRUCT ps;
|
||||||
|
|
|
@ -900,6 +900,13 @@ INT_PTR CALLBACK LogOffDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
|
||||||
EndDialog(hwnd, IDCANCEL);
|
EndDialog(hwnd, IDCANCEL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_ACTIVATE:
|
||||||
|
{
|
||||||
|
if (LOWORD(wParam) == WA_INACTIVE)
|
||||||
|
EndDialog(hwnd, 0);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue