Fixed the popup menu not appearing after restarting the explorer.
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
// wCenterWindow
|
// wCenterWindow
|
||||||
// wCenterWindow.cpp
|
// wCenterWindow.cpp
|
||||||
|
|
||||||
// TODO: Change the formatting of source files.
|
|
||||||
// TODO: Add the name of app's icon author to the About dialog.
|
// TODO: Add the name of app's icon author to the About dialog.
|
||||||
// TODO: Move the InitCommonControlsEx() function to the WinMain().
|
// TODO: Move the InitCommonControlsEx() function to the WinMain().
|
||||||
// TODO: Split main cpp-file to separate files.
|
// 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) {
|
if (message == uMsgRestore) {
|
||||||
Shell_NotifyIconW(NIM_DELETE, &nid);
|
Shell_NotifyIconW(NIM_DELETE, &nid);
|
||||||
Shell_NotifyIconW(NIM_ADD, &nid);
|
Shell_NotifyIconW(NIM_ADD, &nid);
|
||||||
|
Shell_NotifyIconW(NIM_SETVERSION, &nid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return DefWindowProcW(hMainWnd, message, wParam, lParam);
|
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;
|
if (VK_LWIN == pkhs->vkCode) bLWIN = TRUE;
|
||||||
|
|
||||||
// 'I' key
|
// '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__);
|
logger.Out(L"%s(%d): Pressed LCTRL + LWIN + I", TEXT(__FUNCTION__), __LINE__);
|
||||||
|
|
||||||
bKPressed = TRUE;
|
bKPressed = TRUE;
|
||||||
@@ -457,8 +456,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 'C' key
|
// '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__);
|
logger.Out(L"%s(%d): Pressed LCTRL + LWIN + C", TEXT(__FUNCTION__), __LINE__);
|
||||||
|
|
||||||
bKPressed = TRUE;
|
bKPressed = TRUE;
|
||||||
@@ -469,8 +467,7 @@ LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 'V' key
|
// '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__);
|
logger.Out(L"%s(%d): Pressed LCTRL + LWIN + V", TEXT(__FUNCTION__), __LINE__);
|
||||||
|
|
||||||
bKPressed = TRUE; bKEYV = TRUE;
|
bKPressed = TRUE; bKEYV = TRUE;
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<LocalDebuggerCommandArguments>
|
<LocalDebuggerCommandArguments>/noupdate</LocalDebuggerCommandArguments>
|
||||||
</LocalDebuggerCommandArguments>
|
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
@@ -11,8 +10,7 @@
|
|||||||
</LocalDebuggerCommandArguments>
|
</LocalDebuggerCommandArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<LocalDebuggerCommandArguments>
|
<LocalDebuggerCommandArguments>/noupdate</LocalDebuggerCommandArguments>
|
||||||
</LocalDebuggerCommandArguments>
|
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
|||||||
Reference in New Issue
Block a user