rect = GetThemeBackgroundExtent(hTheme, hdc , iPartId , iStateId , pContentRect )

Calculates the size/location of the theme- specified background based on the "pContentRect".


hTheme : PyHTHEME

theme data handle

hdc : int

(optional) device content to be used for drawing

iPartId : int

part number to draw

iStateId : int

state number (of the part) to draw

pContentRect : rect

RECT that defines the content area

Return Value

Result is a rect with the overall size/location of part