From 826a9e1c7468ffd39bd4dbad9345c224eb920e9c Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Sun, 25 Feb 2024 19:09:50 +0300 Subject: [PATCH] Fixed the popup menu not appearing after restarting the explorer. --- wCenterWindow/wCenterWindow.cpp | 11 ++++------- wCenterWindow/wCenterWindow.vcxproj.user | 6 ++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 3ec3e57..4839455 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -23,7 +23,6 @@ // wCenterWindow // wCenterWindow.cpp -// TODO: Change the formatting of source files. // TODO: Add the name of app's icon author to the About dialog. // TODO: Move the InitCommonControlsEx() function to the WinMain(). // TODO: Split main cpp-file to separate files. @@ -411,6 +410,7 @@ LRESULT CALLBACK WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lPar if (message == uMsgRestore) { Shell_NotifyIconW(NIM_DELETE, &nid); Shell_NotifyIconW(NIM_ADD, &nid); + Shell_NotifyIconW(NIM_SETVERSION, &nid); break; } return DefWindowProcW(hMainWnd, message, wParam, lParam); @@ -446,8 +446,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) { if (VK_LWIN == pkhs->vkCode) bLWIN = TRUE; // 'I' key - if (KEY_I == pkhs->vkCode && bLCTRL && bLWIN && !bKPressed) - { + if (KEY_I == pkhs->vkCode && bLCTRL && bLWIN && !bKPressed) { logger.Out(L"%s(%d): Pressed LCTRL + LWIN + I", TEXT(__FUNCTION__), __LINE__); bKPressed = TRUE; @@ -457,8 +456,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) { } // 'C' key - if (KEY_C == pkhs->vkCode && bLCTRL && bLWIN && !bKPressed && !bKEYV) - { + if (KEY_C == pkhs->vkCode && bLCTRL && bLWIN && !bKPressed && !bKEYV) { logger.Out(L"%s(%d): Pressed LCTRL + LWIN + C", TEXT(__FUNCTION__), __LINE__); bKPressed = TRUE; @@ -469,8 +467,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) { } // 'V' key - if (KEY_V == pkhs->vkCode && bLCTRL && bLWIN && !bKPressed && !bKEYV) - { + if (KEY_V == pkhs->vkCode && bLCTRL && bLWIN && !bKPressed && !bKEYV) { logger.Out(L"%s(%d): Pressed LCTRL + LWIN + V", TEXT(__FUNCTION__), __LINE__); bKPressed = TRUE; bKEYV = TRUE; diff --git a/wCenterWindow/wCenterWindow.vcxproj.user b/wCenterWindow/wCenterWindow.vcxproj.user index 3f889cd..246778c 100644 --- a/wCenterWindow/wCenterWindow.vcxproj.user +++ b/wCenterWindow/wCenterWindow.vcxproj.user @@ -1,8 +1,7 @@  - - + /noupdate WindowsLocalDebugger @@ -11,8 +10,7 @@ - - + /noupdate WindowsLocalDebugger