[Mono-bugs] [Bug 80689][Wis] New - WM_WINDOWPOSCHANGING not sent

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 31 12:05:15 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=80689

--- shadow/80689	2007-01-31 12:05:15.000000000 -0500
+++ shadow/80689.tmp.14802	2007-01-31 12:05:15.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80689
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WM_WINDOWPOSCHANGING not sent
+
+Description of Problem:
+WM_WINDOWPOSCHANGING does not appear to be sent (the constant with this 
+name in System.Windows.Forms.Msg is never used).
+
+Additional Information:
+This may be useful. While the following effect can be obtained by using 
+MinimumSize and MaximumSize, at the time it seemed the logical thing to do.
+
+using System;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    const int FixedHeight = 100;
+    public TestForm() {
+        Height = FixedHeight;
+    }
+    const int WM_WINDOWPOSCHANGING = 0x0046;
+    struct WINDOWPOS {
+        IntPtr hwnd;
+        IntPtr hwndInsertAfter;
+        int x;
+        int y;
+        int cx;
+        public int cy;
+        uint flags;
+    }
+    protected override void WndProc(ref Message m) {
+        if (m.Msg == WM_WINDOWPOSCHANGING)
+            unsafe {
+                ((WINDOWPOS*)m.LParam)->cy = FixedHeight;
+            } 
+        else 
+            base.WndProc(ref m);
+    }
+}


More information about the mono-bugs mailing list