WindowsUtilitiesSetWindowPos Method |
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static bool SetWindowPos(
IntPtr handle,
IntPtr hWndInsertAfter,
int x,
int y,
int cx,
int cy,
SWP flags
)
Parameters
- handle
- Type: SystemIntPtr
The handle. - hWndInsertAfter
- Type: SystemIntPtr
A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values: HWND_BOTTOM, HWND_NOTOPMOST, HWND_TOP, HWND_TOPMOST. - x
- Type: SystemInt32
The new position of the left side of the window, in client coordinates. - y
- Type: SystemInt32
The new position of the top of the window, in client coordinates. - cx
- Type: SystemInt32
The new width of the window, in pixels. - cy
- Type: SystemInt32
The new height of the window, in pixels. - flags
- Type: ShellBoost.Core.UtilitiesSWP
The options.
Return Value
Type:
Booleantrue if the call succeeded,
false otherwise.
See Also