Class TTopMostWindow (unit TopWnd)

Inherits from

TComponent

TTopMostWindow class

Constructors


constructor Create(AOwner: TComponent);

TTopMostWindow


Functions

destructor Destroy;


procedure ChangeState;


procedure DoOnAfterChange;

Note: The flag SWP_NOMOVE ignores the x- und y-parameter and the flag SWP_NOSIZE ignores the cx- und cy-parameter.

procedure DoOnBeforeChange;


procedure SetAlwaysOnTop(Value: Boolean);


Properties

property AlwaysOnTop : Boolean

properties

property HWindow : HWnd


Events

event OnAfterChange : TNotifyEvent


event OnBeforeChange : TNotifyEvent

events

Variables

FAlwaysOnTop : Boolean;


FHWindow : HWnd;


FOnAfterChange : TNotifyEvent;


FOnBeforeChange : TNotifyEvent;



Constructors


constructor Create(AOwner: TComponent);

TTopMostWindow


Functions


destructor Destroy;


procedure ChangeState;


procedure DoOnAfterChange;

Note: The flag SWP_NOMOVE ignores the x- und y-parameter and the flag SWP_NOSIZE ignores the cx- und cy-parameter. In this case they are absolutly obsolet. The second parameter of SetWindowPos 'hwndInsertAfter' is also ignored if HWND_TOPMOST or HWND_NOTOPMOST is set.


procedure DoOnBeforeChange;


procedure SetAlwaysOnTop(Value: Boolean);


Properties


property AlwaysOnTop : Boolean

properties


property HWindow : HWnd


Events


event OnAfterChange : TNotifyEvent


event OnBeforeChange : TNotifyEvent

events


Variables


FAlwaysOnTop : Boolean;


FHWindow : HWnd;


FOnAfterChange : TNotifyEvent;


FOnBeforeChange : TNotifyEvent;