Retrieves the location of the theme property definition for the specified property.
Syntax
HRESULT GetThemePropertyOrigin( HTHEME hTheme, int iPartId, int iStateId, int iPropId, PROPERTYORIGIN *pOrigin );
Parameters
- hTheme
- Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
- iPartId
- Integer that specifies the part that contains the theme.
- iStateId
- Integer that specifies the state of the part.
- iPropId
- Integer that specifies the property to retrieve.
- pOrigin
- [out] Pointer to a PROPERTYORIGIN enumerated type that indicates where the property was or was not found.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
Stock Implementation UxTheme.dll Custom Implementation No Header ThemeApi.h Import library UxTheme.lib Minimum operating systems Windows NT Whistler