[Mono-bugs] [Bug 80509][Cos] Changed - [WIN] Incorrect window icon

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 16 10:17:09 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by georgegiolfan at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80509

--- shadow/80509	2007-01-16 09:54:04.000000000 -0500
+++ shadow/80509.tmp.3734	2007-01-16 10:17:09.000000000 -0500
@@ -104,6 +104,17 @@
 
 ------- Additional Comments From sebastien at ximian.com  2007-01-16 09:54 -------
 Other, non Windows, system are "fine" now (they show 2). 
 
 Which icon, 2 or 1, do you see if you do ALT+TAB to select this
 application, using Windows ? then using your patch ?
+
+------- Additional Comments From georgegiolfan at yahoo.com  2007-01-16 10:17 -------
+Using Microsoft .NET Framework I see 1 in the Alt+Tab list. You are 
+right. Simply changing icon in the currently only call to SendMessage 
+affects the big icon. Adding another call, like
+Win32SendMessage(hwnd, Msg.WM_SETICON, (IntPtr)0, icon == null ? 
+IntPtr.Zero : new Icon(icon, 16, 16).Handle);
+seems to work.
+If you decide to use this, please replace 1 and 0 with Windows 
+constants (ICON_BIG, ICON_SMALL). It is easier for somebody reading 
+the MSDN documentation. Possibly use a constant for 16.


More information about the mono-bugs mailing list