diff options
| author | Patrick Schönberger | 2022-01-09 21:37:15 +0100 |
|---|---|---|
| committer | Patrick Schönberger | 2022-01-09 21:37:15 +0100 |
| commit | 2986e5896e745a6b49160f682569e0f9976034bf (patch) | |
| tree | a51c8c33492ad6c1dd1a5511e92289f42f74d375 /src | |
| parent | e90fc8a9809127820252a09dd7bfbbbc7a6f295d (diff) | |
| download | autorec-2986e5896e745a6b49160f682569e0f9976034bf.tar.gz autorec-2986e5896e745a6b49160f682569e0f9976034bf.zip | |
taskbar icon
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 2 | ||||
| -rw-r--r-- | src/win.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5056acf..a590411 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,8 +5,6 @@ #include "win.h"
#include "ws.h"
-#include "../res/resource.h"
-
#define LAY_IMPLEMENTATION
#include "layout.h"
@@ -5,6 +5,8 @@ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #include <windows.h>
#include <CommCtrl.h>
+#include "../res/resource.h"
+
#include "layout.h"
#include <functional>
@@ -148,7 +150,7 @@ Window(string title, string className, HINSTANCE hInstance) _::niData.cbSize = sizeof(_::niData);
_::niData.uID = 12345;
_::niData.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
- _::niData.hIcon = LoadIconA(nullptr, IDI_WINLOGO);
+ _::niData.hIcon = LoadIconA(hInstance, MAKEINTRESOURCEA(IDI_MY_ICON));
_::niData.hWnd = result;
_::niData.uCallbackMessage = WM_APP+1;
_::niData.uVersion = NOTIFYICON_VERSION_4;
|
