WindowBlinds : DirectSkin
SetAOTState
 

The SetAOTState method set or remove always on top from a window depending on the value of state. If state is 0 then it will remove always on top, and if its 1 then it will set it.

void SetAOTState(
long
hWnd,
short state);

Parameters

hWnd
Handle to the window who's z-order state is to be modified.
state
The state to be set.  Providing 1 for this parameter will set DirectSkin internally to think the window is in always-on-top mode.  Providing 0 for this parameter will set DirectSkin internally to think the window is not in always-on-top mode.

Return Values

 

This method will has no return values.

Remarks

The SetAOTState method is used to set the internal always-on-top status of a window.  The SetAOTState method does not modify the z-order of a window.

See Also

QueryRollState, SetWindowRollState, QueryAOTState, SetAOTState