[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

@@ -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);
}