Skip to content

Commit

Permalink
[win] online-installer: refactoring setIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Dec 27, 2024
1 parent e9ddb63 commit 6215c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win-linux/extras/online-installer/src/uiclasses/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void Window::showMaximized()
void Window::setIcon(int id)
{
HMODULE hInstance = GetModuleHandle(NULL);
HICON hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(id));
HICON hIcon = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(id), IMAGE_ICON, 96, 96, LR_DEFAULTCOLOR | LR_SHARED);
SendMessage(m_hWnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
SendMessage(m_hWnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
}
Expand Down

0 comments on commit 6215c2a

Please sign in to comment.