###User Defined Function###
_WinAPI_DrawThemeTextEx

###Description###
Draws text using the color and font defined by the visual style.

###Syntax###
#include <WinAPITheme.au3>
_WinAPI_DrawThemeTextEx ( $hTheme, $iPartId, $iStateId, $hDC, $sText, $tRECT, $iFlags, $tDTTOPTS )


###Parameters###
@@ParamTable@@
$hTheme
	Handle to a window's specified theme data.
$iPartId
	The part that has the desired text appearance. If this value is 0, the text is drawn in the default font, or a font selected into the device context.
$iStateId
	The state of the part.
$hDC
	Handle to the device context to use for drawing.
$sText
	The string that contains the text to draw.
$tRECT
	$tagRECT structure that contains the rectangle in which the text is to be drawn.
$iFlags
	The string's formatting flags ($DT_*).
$tDTTOPTS
	$tagDTTOPTS structure that defines additional formatting options.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	1.
Failure 	0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.
@@End@@


###Remarks###
This function requires <strong>Windows Vista or later</strong>.


###Related###


###See Also###
@@MsdnLink@@ DrawThemeTextEx


###Example###
@@IncludeExample@@
