Click or drag to resize
Xcalibur Systems LLC Logo

WindowHelperSetWindowPos 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.

SetWindowPos function


Namespace: Xcalibur.NativeMethods.V2.Windows
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("user32.dll")]
public static bool SetWindowPos(
	IntPtr windowHandle,
	IntPtr windowHandleInsertAfter,
	int x,
	int y,
	int width,
	int height,
	WindowsPositionType flags
)

Parameters

windowHandle  IntPtr
A handle to the window.
windowHandleInsertAfter  IntPtr
A handle to the window to precede the positioned window in the Z order of type .
x  Int32
The new position of the left side of the window, in client coordinates.
y  Int32
The new position of the top of the window, in client coordinates.
width  Int32
The new width of the window, in pixels.
height  Int32
The new height of the window, in pixels.
flags  WindowsPositionType
The window sizing and positioning flags of type .

Return Value

Boolean
See Also