WindowBlinds : DirectSkin
AddPerWindowSkin
 

The AddPerWindowSkin method is used to add secondary skinning to a window.

short AddPerWindowSkin(
short 
index,
long
hWnd );

Parameters

index
The index of the secondary skin to be used.  See the secondary skins reference for more information. Important: Index 2 is used by DirectSkin when using the ShowPreview method.
hWnd
Handle to the window which the secondary skin will be applied to.

Return Values

 

0 = no errors
-1 = skin was never loaded
2 = invalid window
3 = invalid skin index

Remarks

Before destroying a window, secondary skinning must be removed using the RemovePerWindowSkin method.  Failing to do this can have unpredictable results.

See Also

 

Secondary Skins, LoadSecondarySkin, LoadSecondarySkin2, DestroySecondarySkin, RemovePerWindowSkin, ShowPreview