WindowBlinds : DirectSkin
SetWindowRollState
 

The SetWindowRollState method is used to set the roll state of a window.  If a window has been rolled, and the application has resized it to the point where it is now unrolled, this method will need to be called for DirectSkins' internals to reset.  Otherwise, the next time the roll button on the window is clicked, DirectSkin will attempt to unroll the window, although it has already been rolled.

void SetWindowRollState(
long
hWnd,
short state);

Parameters

hWnd
Handle to the window who's roll state is to be set.
state
The state to be set.  Providing 1 for this value will cause DirectSkin to set internally that the window has been rolled.  Providing 0 for this value will cause DirectSkin to internally see that the window is unrolled.

Return Values

 

This method will has no return values.

Remarks

The SetWindowRollState method is used to set the internal roll status of a window.  When a window is rolled, only the titlebar is visible.  This is similar to 'window shading'.  The SetWindowRollState method sets an internal window state and cannot be used to visually roll or unroll a window.

See Also

QueryRollState, QueryAOTState, SetAOTState