[Mono-bugs] [Bug 80509][Cos] Changed - [WIN] Incorrect window icon
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jan 15 17:55:26 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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80509
--- shadow/80509 2007-01-15 16:28:49.000000000 -0500
+++ shadow/80509.tmp.13442 2007-01-15 17:55:26.000000000 -0500
@@ -11,13 +11,13 @@
AssignedTo: toshok at ximian.com
ReportedBy: georgegiolfan at yahoo.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: Incorrect window icon
+Summary: [WIN] Incorrect window icon
Description of Problem:
If Form.Icon is set to an Icon created from a file that contains multiple
icons, the window displays the wrong icon.
Steps to reproduce the problem:
@@ -78,6 +78,21 @@
selection for such case.
------- Additional Comments From georgegiolfan at yahoo.com 2007-01-15 16:28 -------
I probably made a mistake when I created the test icon. I never meant
to use non-standard sizes. Otherwise using the 16x16 icon for the
window title bar seems to be the solution.
+
+------- Additional Comments From sebastien at ximian.com 2007-01-15 17:55 -------
+Well it did make nice test cases ;-)
+
+r71088 fix the icon issue under UNIX. Icon.ToBitmap didn't respect the
+current icon's size, show the default (normally 32x32) was shown.
+
+Under Windows and MS SD/GDI+ (your original, unsolved, problem) I
+noted this:
+
+internal override void SetIcon(IntPtr hwnd, Icon icon) {
+ Win32SendMessage(hwnd, Msg.WM_SETICON, (IntPtr)1, icon.Handle); // 1
+= large icon (0 would be small)
+}
+
More information about the mono-bugs
mailing list