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

This commit is contained in:
Quantum
2026-06-06 01:44:09 -04:00
committed by Geoffrey McRae
parent ffffff0740
commit 89ddab9d57
7 changed files with 40 additions and 6 deletions

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)");