1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-31 20:05:29 +01:00

Fixed #591 (added support for showing clock flyout using Win+Alt+D, as in Windows 10)

This commit is contained in:
Valentin Radu 2021-12-23 19:53:53 +02:00
parent a3c21396a1
commit 14d2d24d67

View File

@ -1581,6 +1581,7 @@ INT64 Shell_TrayWndSubclassProc(
{
if (uMsg == WM_NCDESTROY)
{
UnregisterHotKey(hWnd, 'VNEP');
RemoveWindowSubclass(hWnd, Shell_TrayWndSubclassProc, Shell_TrayWndSubclassProc);
}
else if (!bIsPrimaryTaskbar && uMsg == WM_CONTEXTMENU)
@ -1611,6 +1612,11 @@ INT64 Shell_TrayWndSubclassProc(
SHAppBarMessage(ABM_SETSTATE, &abd);
}
}
else if (uMsg == WM_HOTKEY && lParam == MAKELPARAM(MOD_WIN | MOD_ALT, 0x44))
{
InvokeClockFlyout();
return 0;
}
else if (uMsg == WM_HOTKEY && wParam == 500 && lParam == MAKELPARAM(MOD_WIN, 0x41))
{
InvokeActionCenter();
@ -4634,6 +4640,7 @@ HWND CreateWindowExWHook(
else if (bIsExplorerProcess && (*((WORD*)&(lpClassName)+1)) && !wcscmp(lpClassName, L"Shell_TrayWnd"))
{
SetWindowSubclass(hWnd, Shell_TrayWndSubclassProc, Shell_TrayWndSubclassProc, TRUE);
RegisterHotKey(hWnd, 'VNEP', MOD_WIN | MOD_ALT, 0x44);
}
else if (bIsExplorerProcess && (*((WORD*)&(lpClassName)+1)) && !wcscmp(lpClassName, L"Shell_SecondaryTrayWnd"))
{