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