Adding icon.

This commit is contained in:
Ben Vanik 2015-12-27 11:09:19 -08:00
parent 484972db30
commit 5f61c6ad07
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1,3 @@
//{{NO_DEPENDENCIES}} //{{NO_DEPENDENCIES}}
MAINICON ICON "..\\..\\..\\assets\\icon\\icon.ico"

View File

@ -51,8 +51,8 @@ bool Win32Window::OnCreate() {
wcex.cbClsExtra = 0; wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0; wcex.cbWndExtra = 0;
wcex.hInstance = hInstance; wcex.hInstance = hInstance;
wcex.hIcon = nullptr; // LoadIcon(hInstance, (LPCTSTR)IDI_TUTORIAL1); wcex.hIcon = LoadIcon(hInstance, L"MAINICON");
wcex.hIconSm = nullptr; // LoadIcon(hInstance, (LPCTSTR)IDI_TUTORIAL1); wcex.hIconSm = LoadIcon(hInstance, L"MAINICON");
wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wcex.lpszMenuName = nullptr; wcex.lpszMenuName = nullptr;