MonitorGetWorkArea

Checks if the specified monitor exists and optionally retrieves the bounding coordinates of its working area.

IsExisting := MonitorGetWorkArea(N, Left, Top, Right, Bottom)

Parameters

N

Type: Integer

The monitor number, between 1 and the number returned by MonitorGetCount. If omitted, the primary monitor is used.

Left
Top
Right
Bottom

Type: Variable

The output variables in which to store the bounding coordinates of the working area, in pixels.

Return Value

Type: Integer

This function returns the monitor number (the same as N unless N was omitted).

Error Handling

On failure, an exception is thrown and the output variables are not modified.

Remarks

The working area of a monitor excludes the area occupied by the taskbar and other registered desktop toolbars.

Related

MonitorGet, SysGet, Monitor functions

Examples

See example #1 on the Monitor Functions page for a demonstration of this function.