_winxptheme.DrawThemeText

DrawThemeText(hTheme, hdc, iPartId, iStateId, pszText, dwCharCount, dwTextFlags, dwTextFlags2, pRect)

Draws the text using the theme-specified color and font for the "iPartId" and "iStateId".

Parameters

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

pszText : string

actual text to draw

dwCharCount : int

number of chars to draw (-1 for all)

dwTextFlags : int

same as DrawText() "uFormat" param

dwTextFlags2 : int

additional drawing options

pRect : rect

defines the size/location of the part