};
// Max points GetMouseMovePointsEx can return is 64.
- int numPoints = 64;
-
+ const int numPoints = 64;
MouseMovePoint* movePoints = stackalloc MouseMovePoint[numPoints];
// GetMouseMovePointsEx fills in movePoints so that the most
#region Location
- public Point Location
+ public override Point Location
{
get { return Bounds.Location; }
set
#region Size
- public Size Size
+ public override Size Size
{
get { return Bounds.Size; }
set
#endregion
- #region ClientRectangle
-
- public Rectangle ClientRectangle
- {
- get
- {
- if (client_rectangle.Width == 0)
- client_rectangle.Width = 1;
- if (client_rectangle.Height == 0)
- client_rectangle.Height = 1;
- return client_rectangle;
- }
- set
- {
- WindowStyle style = (WindowStyle)Functions.GetWindowLong(window.Handle, GetWindowLongOffsets.STYLE);
- Win32Rectangle rect = Win32Rectangle.From(value);
- Functions.AdjustWindowRect(ref rect, style, false);
- Size = new Size(rect.Width, rect.Height);
- }
- }
-
- #endregion
-
#region ClientSize
public override Size ClientSize
#endregion
- #region Width
-
- public int Width
- {
- get { return ClientRectangle.Width; }
- set { ClientRectangle = new Rectangle(0, 0, value, Height); }
- }
-
- #endregion
-
- #region Height
-
- public int Height
- {
- get { return ClientRectangle.Height; }
- set { ClientRectangle = new Rectangle(0, 0, Width, value); }
- }
-
- #endregion
-
- #region X
-
- public int X
- {
- get { return Location.X; }
- set { Location = new Point(value, Y); }
- }
-
- #endregion
-
- #region Y
-
- public int Y
- {
- get { return Location.Y; }
- set { Location = new Point(X, value); }
- }
-
- #endregion
-
#region Icon
public override Icon Icon