[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

+3 -2
View File
@@ -22,6 +22,7 @@
#include <windowsx.h>
#include <strsafe.h>
#include <CDebug.h>
#include "Resources.h"
HINSTANCE CWindow::hInstance = (HINSTANCE)GetModuleHandle(NULL);
@@ -30,8 +31,8 @@ void CWindow::populateWindowClass(WNDCLASSEX &wx)
wx.cbSize = sizeof(WNDCLASSEX);
wx.lpfnWndProc = wndProc;
wx.hInstance = hInstance;
wx.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wx.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
wx.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(ID_MAIN_ICON));
wx.hIconSm = wx.hIcon;
wx.hCursor = LoadCursor(NULL, IDC_ARROW);
wx.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
}