DrawThemeBackground(hTheme, hdc, iPartId, iStateId, pRect, pClipRect)

Draws the theme-specified border and fill for the "iPartId" and "iStateId". This could be based on a bitmap file, a border and fill, or other image description.


hTheme : PyHTHEME

theme data handle

hdc : int

HDC to draw into

iPartId : int

part number to draw

iStateId : int

state number (of the part) to draw

pRect : rect

defines the size/location of the part

pClipRect : rect

optional clipping rect (don't draw outside it)