WindowBlinds : DirectSkin
GetThemeHandle
 

The GetThemeHandle method allows you to define your own sections in the skin which you can then use DirectSkin to load and paint.

long GetThemeHandle(LPCTSTR sectionName);

Parameters

sectionName
The name of the WindowBlinds section to load values from.

Return Values

 

Returns a handle to the standard WindowBlinds sections.
If the return value is 0 then the section could not be loaded.

Remarks

 

The function will load the values in the section defined by sectionName from the current skin. The section should conform to the standard WindowBlinds section definiftions.

You can also use this function to get a handle to the standard WindowBlinds sections by passing in their names (such as ‘headerbar' or ‘buttons'). The value returned from this function should be stored and the application is responsible for destroying it by calling CloseThemeHandle when you are finished with it.

If the return value is 0 then the section could not be loaded

See Also

 

There are no related topics to this method.