GetThemeBackgroundRegion Function


This is preliminary documentation and is subject to change.

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 ImplementationUxTheme.dll
Custom ImplementationNo
HeaderThemeApi.h
Import libraryUxTheme.lib
Minimum operating systems Windows NT Whistler


© 2000 Microsoft Corporation. All rights reserved. Terms of use.