[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:
Hermès Bélusca-Maïto 2016-09-17 22:44:50 +00:00
parent a1895a9da6
commit 99dcff252e
2 changed files with 14 additions and 0 deletions

View file

@ -299,6 +299,13 @@ ExitWindowsDialogShellProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return TRUE;
}
case WM_ACTIVATE:
{
if (LOWORD(wParam) == WA_INACTIVE)
EndDialog(hWnd, 0);
return FALSE;
}
case WM_PAINT:
{
PAINTSTRUCT ps;

View file

@ -900,6 +900,13 @@ INT_PTR CALLBACK LogOffDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
EndDialog(hwnd, IDCANCEL);
break;
case WM_ACTIVATE:
{
if (LOWORD(wParam) == WA_INACTIVE)
EndDialog(hwnd, 0);
return FALSE;
}
case WM_COMMAND:
switch (LOWORD(wParam))
{