# Function Reference

# _WinAPI_DrawThemeEdge

Draws one or more edges defined by the visual style of a rectangle

#include <WinAPITheme.au3>
_WinAPI_DrawThemeEdge ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT, $iEdge, $iFlags [, $tAREA = 0] )

## Parameters

$hTheme | Handle to a window's specified theme data.
$iPartID | The part that contains the rectangle.
$iStateID | The state of the part.
$hDC | Handle to the device context.
$tRECT | $tagRECT structure that contains the rectangle.
$iEdge | The type of inner and outer edges to draw. This parameter must be a combination of one inner-border flag and one outer-border flag ($BDR_*), or one of the combination flags ($EDGE_*).
$iFlags | The type of border to draw. It can be a combination of the $BF_* constants.
$tAREA | [optional] $tagRECT structure that contains the rectangle that receives the interior rectangle, if $BF_ADJUST is used.

## Return Value

Success: | 1.
Failure: | 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

## Remarks

$BDR_* , $EDGE_* , $BF_* constants require #include <BorderConstants.au3>.

## See Also

Search DrawThemeEdge in MSDN Library.