Calculates the original size of the theme-defined part.
Syntax
HRESULT GetThemePartSize( HTHEME hTheme, int iPartId, int iStateId, SIZE *psz );
Parameters
- hTheme
- Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
- iPartId
- Integer that specifies the part to calculate the size of.
- iStateId
- Integer that specifies the state of the part.
- psz
- [in] Pointer to a SIZE structure that receives the dimensions of the specified part.
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