# Function Reference

# _WinAPI_DrawFocusRect

Draws a rectangle in the style used to indicate that the rectangle has the focus

#include <WinAPIGdi.au3>
_WinAPI_DrawFocusRect ( $hDC, $tRECT )

## Parameters

$hDC | A handle to the device context.
$tRECT | $tagRECT structure that specifies the logical coordinates of the rectangle that is to be drawn.

## Return Value

Success: | True
Failure: | False

## Remarks

The _WinAPI_DrawFocusRect() is an XOR function, so calling it a second time with the same rectangle removes the rectangle from the screen.

## See Also

Search DrawFocusRect in MSDN Library.