DrawThemeWindowListViewHeader

To draw a window list view header consistent with the current theme, use the DrawThemeWindowListViewHeader function.

FUNCTION DrawThemeWindowListViewHeader(r as Rect,inState as Integer) as Integer

r:
The rectangle that defines the window
list view header bounds.

inState:
A value specifying the state in which the
window list view header is to be drawn;
see Draw state constants bellow. The frame can
only be drawn as active or inactive;
passing kThemeStatePressed will result in
an error being returned.

Returns:
A result code, see result codes.

Description:
The DrawThemeWindowListViewHeader function draws a window list view header, such as that used by the Finder, inside the rectangle that is passed in. A window list view header is drawn without a line on its bottom edge, so that bevel buttons can be placed against it without overlapping.

Draw state constants:

0 - Element is drawn in its disabled,
inactive state.

1 - Element is drawn in its normal,
active state.

2 - Element is drawn in its selected,
pressed state.

Supported platforms:
* MacOS PPC
* MacOS 68k
* MacOS Carbon
Unsupported platforms:
* Windows x86