Updater: Set application icon

This commit is contained in:
Stenzek
2025-11-20 13:41:24 +10:00
parent bda75db0fa
commit 942422babb
3 changed files with 5 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
<Manifest Include="updater.manifest" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h" />
<ClInclude Include="updater.h" />
<ClInclude Include="win32_progress_callback.h" />
</ItemGroup>

View File

@@ -12,6 +12,7 @@
<ItemGroup>
<ClInclude Include="updater.h" />
<ClInclude Include="win32_progress_callback.h" />
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="updater.rc" />

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
#include "win32_progress_callback.h"
#include "resource.h"
#include "common/log.h"
#include "common/string_util.h"
@@ -74,8 +75,8 @@ bool Win32ProgressCallback::Create()
wc.cbSize = sizeof(WNDCLASSEX);
wc.lpfnWndProc = WndProcThunk;
wc.hInstance = GetModuleHandle(nullptr);
// wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON));
// wc.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON));
wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(IDI_ICON1));
wc.hIconSm = LoadIcon(wc.hInstance, MAKEINTRESOURCE(IDI_ICON1));
wc.hCursor = LoadCursor(NULL, IDC_WAIT);
wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
wc.lpszClassName = CLASS_NAME;