Computes the region for a regular or partially transparent background that is bounded by a specified rectangle.
Syntax
HRESULT GetThemeBackgroundRegion( HTHEME hTheme, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion );
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 region.
- iStateId
- Integer that specifies the state of the part.
- pRect
- Pointer to a RECT structure that contains, in logical coordinates, the specified rectangle used to compute the region.
- pRegion
- [out] Pointer to the handle to the computed region.
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