Retrieves the value of a specified ENUM property.
Syntax
HRESULT GetThemeEnum( HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal );
Parameters
- hTheme
- Handle to the specified theme data. HTHEME is a handle to a window's theme data. Use OpenThemeData to create an HTHEME.
- iPartId
- Integer that specifies the part that contains the ENUM property.
- iStateId
- Integer that specifies the state of the part.
- iPropId
- Integer that specifies the property to retrieve.
- piVal
- [out] Pointer to an integer that receives the ENUM value.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Certain primitive properties types are defined for use with the theme-aware controls. The ENUM property is defined as a string value that is matched to a declared enumeration value.
Function Information
Stock Implementation UxTheme.dll Custom Implementation No Header ThemeApi.h Import library UxTheme.lib Minimum operating systems Windows NT Whistler