rect = GetThemeBackgroundContentRect(hTheme, hdc , iPartId , iStateId , pBoundingRect )

Gets the size of the content for the theme-defined background. This is usually the area inside the borders or Margins.


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

pBoundingRect : rect

the outer RECT of the part being drawn

Return Value

The result is a rect with the content area