|
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.WindowsAssembly: 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
)
<DllImportAttribute("user32.dll">]
Public Shared Function SetWindowPos (
windowHandle As IntPtr,
windowHandleInsertAfter As IntPtr,
x As Integer,
y As Integer,
width As Integer,
height As Integer,
flags As WindowsPositionType
) As Boolean
public:
[DllImportAttribute(L"user32.dll")]
static bool SetWindowPos(
IntPtr windowHandle,
IntPtr windowHandleInsertAfter,
int x,
int y,
int width,
int height,
WindowsPositionType flags
)
[<DllImportAttribute("user32.dll")>]
static member SetWindowPos :
windowHandle : IntPtr *
windowHandleInsertAfter : IntPtr *
x : int *
y : int *
width : int *
height : int *
flags : WindowsPositionType -> bool
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
BooleanSee Also