WindowsUtilitiesMoveWindow Method |
Changes the position and dimensions of the specified window.
For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static bool MoveWindow(
IntPtr handle,
int x,
int y,
int width,
int height,
bool repaint
)
Parameters
- handle
- Type: SystemIntPtr
The handle. - x
- Type: SystemInt32
The new position of the left side of the window. - y
- Type: SystemInt32
The new position of the top of the window. - width
- Type: SystemInt32
The new width of the window. - height
- Type: SystemInt32
The new height of the window. - repaint
- Type: SystemBoolean
Indicates whether the window is to be repainted. If this parameter is true, the window receives a message.
If the parameter is false, no repainting of any kind occurs.
This applies to the client area, the nonclient area (including the title bar and scroll bars), and any part of the parent window uncovered as a result of moving a child window.
Return Value
Type:
Booleantrue if the call succeeded,
false otherwise.
See Also