From 9fa311ebaff1b3fa539048ff39d5f0c119cd5bf0 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Wed, 24 Aug 2011 16:49:47 +0100 Subject: [PATCH] Use the embedded application icon for the Update Dialog window --- src/UpdateDialogWin32.cpp | 2 +- src/resources/updater.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UpdateDialogWin32.cpp b/src/UpdateDialogWin32.cpp index 2096089..f5888f6 100644 --- a/src/UpdateDialogWin32.cpp +++ b/src/UpdateDialogWin32.cpp @@ -46,7 +46,7 @@ void registerWindowClass() wcex.lpfnWndProc = updateDialogWindowProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; - wcex.hIcon = 0; + wcex.hIcon = LoadIcon(GetModuleHandle(0),"IDI_APPICON"); wcex.hCursor = LoadCursor(0,IDC_ARROW); wcex.hbrBackground = (HBRUSH)background; wcex.lpszMenuName = (LPCTSTR)0; diff --git a/src/resources/updater.rc b/src/resources/updater.rc index 12d4ad4..5451952 100644 --- a/src/resources/updater.rc +++ b/src/resources/updater.rc @@ -1 +1 @@ -IDI_ICON1 ICON DISCARDABLE "updater.ico" +IDI_APPICON ICON DISCARDABLE "updater.ico"