DrawThemeFocusRect
To draw or erase a focus ring around a specified rectangle use the DrawThemeFocusRect function.
FUNCTION DrawThemeFocusRect(r as Rect,inHasFocus) : Integer
r:
The rectangle that defines the focus ring
inner bounds.
inHasFocus:
A Boolean value. If true, the focus ring
should be drawn. If false, the focus ring
should be erased.
Returns:
A result code, see result codes.
Description:
The DrawThemeFocusRect function should be used to indicate that an item has keyboard focus. The focus ring is drawn outside the rectangle that is passed in and can be outset a maximum of 3 pixels.
Supported platforms:
* MacOS PPC
* MacOS 68k
* MacOS Carbon
Unsupported platforms:
* Windows x86