+2005-12-07 Jackson Harper <jackson@ximian.com>
+
+ * MdiChildContext.cs: reenable the sizing code.
+ - When the mouse leaves a window reset its cursor.
+
2005-12-07 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Reflect latest Hwnd changes
case Msg.WM_NCLBUTTONDOWN:
return HandleNCLButtonDown (ref m);
+ case Msg.WM_MOUSE_LEAVE:
+ FormMouseLeave (ref m);
+ break;
+
case Msg.WM_NCPAINT:
// form.UpdateStyles ();
PaintWindowDecorations ();
return true;
}
- /*
if (IsSizable) {
SetCursorForPos (pos);
form.Capture = true;
return true;
}
- */
return false;
}
int x = Control.LowOrder ((int) m.LParam.ToInt32 ());
int y = Control.HighOrder ((int) m.LParam.ToInt32 ());
FormPos pos = FormPosForCoords (x, y);
- Console.WriteLine ("position: " + pos);
+
SetCursorForPos (pos);
ClearVirtualPosition ();
return false;
}
+ private void FormMouseLeave (ref Message m)
+ {
+ form.Cursor = Cursors.Default;
+ }
+
private void SetCursorForPos (FormPos pos)
{
switch (pos) {