int GetMonitorFromPoint (Point point, int *monitorID);
Returns the ID of the monitor that is nearest to the specified point.
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); ExampleGetMonitorFromPoint (MakePoint (20, 30), &monitorID); |
Output | ||
Name | Type | Description |
monitorID | integer (passed by reference) | The ID of the monitor that contains or is nearest to the specified point. |
Name | Type | Description | ||||
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|