Click or drag to resize

Win32WindowSetWindowPos Method

Changes the size, position, and Z order of this 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
C#
public bool SetWindowPos(
	IntPtr hWndInsertAfter,
	int x,
	int y,
	int cx,
	int cy,
	SWP flags
)

Parameters

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: Boolean
true if the call succeeded, false otherwise.
See Also