GetMonitorFromPoint
int GetMonitorFromPoint (Point point, int *monitorID);
Purpose
Returns the ID of the monitor that is nearest to the specified point.
Parameters
| Input | ||
| Name | Type | Description | 
| point | Point | The specified point. The Point structure is defined as follows: typedef struct { int x; int y; } Point; You can create a Point without declaring a variable by using the following function: Point MakePoint (int x, int y);Example GetMonitorFromPoint (MakePoint (20, 30), &monitorID); | 
| Output | ||
| Name | Type | Description | 
| monitorID | int | The ID of the monitor that contains or is nearest to the specified point. | 
Return Value
| Name | Type | Description | 
| status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. | 
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later
Example
Refer to userint\multimonitor.cws for an example of using the GetMonitorFromPoint function.
