_winxptheme.GetThemeBackgroundExtent
rect = GetThemeBackgroundExtent(hTheme, hdc
, iPartId
, iStateId
, pContentRect
)
Calculates the size/location of the theme-
specified background based on the "pContentRect".
Parameters
hTheme : PyHTHEME
theme data handlehdc : int
(optional) device content to be used for drawingiPartId : int
part number to drawiStateId : int
state number (of the part) to drawpContentRect : rect
RECT that defines the content areaReturn Value
Result is a rect with the overall size/location of part