# Toolbar_GetAreaOnPanel

int Toolbar_GetAreaOnPanel (int panel, Rect *area);

## Purpose

Fills out a Rect indicating the area occupied by toolbars docked on the specified panel.

This area can be used to adjust the position of other controls on the panel. This function can be used well in conjunction with the TOOLBAR_EVENT_ARRANGE event.

## Parameters

Input
Name | Type | Description
panel | int | The handle of the panel whose toolbar area will be computed.
Output
Name | Type | Description
area | int | Set to the smallest area which contains all toolbars docked to the specified panel.

## Return Value

Name | Type | Description
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.