From 654b9778d819ea3cf584fdeafa1f626a2889bc2d Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Wed, 6 Feb 2002 21:38:54 +0000 Subject: [PATCH] 95894 - turbo icon is horked. r=law sr=hewitt --- xpfe/bootstrap/nsNativeAppSupportWin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xpfe/bootstrap/nsNativeAppSupportWin.cpp b/xpfe/bootstrap/nsNativeAppSupportWin.cpp index 24d3ae8c9f1..bb282cb473f 100644 --- a/xpfe/bootstrap/nsNativeAppSupportWin.cpp +++ b/xpfe/bootstrap/nsNativeAppSupportWin.cpp @@ -1873,7 +1873,12 @@ nsNativeAppSupportWin::SetupSysTrayIcon() { mIconData.hWnd = (HWND)MessageWindow(); // Icon is our default application icon. - mIconData.hIcon = ::LoadIcon( ::GetModuleHandle( NULL ), IDI_APPLICATION ), + mIconData.hIcon = (HICON)::LoadImage( ::GetModuleHandle( NULL ), + IDI_APPLICATION, + IMAGE_ICON, + ::GetSystemMetrics( SM_CXSMICON ), + ::GetSystemMetrics( SM_CYSMICON ), + NULL ); // Tooltip is the brand short name. mIconData.szTip[0] = 0;