Click or drag to resize

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:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
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: callback.ShellBoost.Core.UtilitiesSWP
The options.

Return Value

Type: Boolean
true if the call succeeded, false otherwise.
See Also