|
@ -66,8 +66,6 @@ int WINAPI WinMain (HINSTANCE hThisInstance, |
|
|
); |
|
|
); |
|
|
/*Initialize the NOTIFYICONDATA structure only once*/ |
|
|
/*Initialize the NOTIFYICONDATA structure only once*/ |
|
|
InitNotifyIconData(); |
|
|
InitNotifyIconData(); |
|
|
/* Make the window visible on the screen */ |
|
|
|
|
|
ShowWindow (Hwnd, nCmdShow); |
|
|
|
|
|
|
|
|
|
|
|
/* register hotkey. 0x59 is 'y' so win+y or print *
|
|
|
/* register hotkey. 0x59 is 'y' so win+y or print *
|
|
|
* see: https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes */
|
|
|
* see: https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes */
|
|
@ -76,6 +74,9 @@ int WINAPI WinMain (HINSTANCE hThisInstance, |
|
|
FatalAppExit(0, TEXT("Couldn't register hotkey!")); |
|
|
FatalAppExit(0, TEXT("Couldn't register hotkey!")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Make the window visible on the screen */ |
|
|
|
|
|
ShowWindow (Hwnd, nCmdShow); |
|
|
|
|
|
|
|
|
/* Run the message loop. It will run until GetMessage() returns 0 */ |
|
|
/* Run the message loop. It will run until GetMessage() returns 0 */ |
|
|
while (GetMessage (&messages, NULL, 0, 0)) |
|
|
while (GetMessage (&messages, NULL, 0, 0)) |
|
|
{ |
|
|
{ |
|
|