[idd] helper: use Resources.h for icon IDs

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2026-06-07 07:04:00 +10:00
1 parent ffffff0740
commit 89ddab9d57
7 files changed
+40 -6

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@
#include "CNotifyWindow.h"
#include "CConfigWindow.h"
#include "Resources.h"
#include <CDebug.h>
#include <windowsx.h>
#include <strsafe.h>
@@ -156,7 +157,7 @@ void CNotifyWindow::registerIcon()
m_iconData.hWnd = m_hwnd;
m_iconData.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP | NIF_SHOWTIP;
m_iconData.uCallbackMessage = WM_NOTIFY_ICON;
m_iconData.hIcon = LoadIcon(hInstance, IDI_APPLICATION);
m_iconData.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(ID_MAIN_ICON));
m_iconData.uVersion = NOTIFYICON_VERSION_4;
StringCbCopy(m_iconData.szTip, sizeof m_iconData.szTip, L"Looking Glass (IDD)");