WindowBlinds : DirectSkin
LoadSecondarySkin
 

DirectSkin is capable of loading up a number of skins at once. The LoadSecondarySkin method can be used to load up another skin into a skin ‘slot'.
Slot 2 is reserved for the preview system, so you should avoid this index. Values from 1 to 63 are accepted for the index.

short LoadSecondarySkin(
LPCTSTR
Skinname,
short index);

Parameters

Skinname
The path to the UIS file, non-relative to the set skin directory.  Example: "c:\\program files\\skinnedapp\\liquid2\\liquid2.UIS"
index
A number, from 0 to 63, that relates to an entry in a table used for secondary skinning.  See the Secondary Skins reference for more information. Important: Index 2 is used by DirectSkin when using the ShowPreview method.

Return Values

 

0 = no errors
-1 = skin could not be loaded
3 = invalid skin index

Remarks

 

If skin path based UIS loading is needed, see the LoadSecondarySkin2 method.

See Also

 

Secondary Skins, LoadSecondarySkin2, DestroySecondarySkin, AddPerWindowSkin, RemovePerWindowSkin, ShowPreview