[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TWidgetSet.SetWindowPos

Changes the size, position, and Z order of a window.

Declaration

Source position: winapih.inc line 268

public function TWidgetSet.SetWindowPos(

  hWnd: HWND;

  hWndInsertAfter: HWND;

  X: Integer;

  Y: Integer;

  cx: Integer;

  cy: Integer;

  uFlags: UINT

):Boolean; virtual;

Arguments

hWnd

  

The window handle.

hWndInsertAfter

  

The window handle or Z order position.

X

  

The window origin.

Y

  

The window origin.

cx

  

The window extent.

cy

  

The window extent.

uFlags

  

General placement flags.

Function result

Zero on failure.

Description

The Z order can be changed to just behind another window, or:

The general placement can be a combination of:

The latest version of this document can be found at lazarus-ccr.sourceforge.net.