GetMonitorFromPanel
int GetMonitorFromPanel (int panelHandle, int *monitorID);
Purpose
Returns the ID of the monitor that contains the specified panel or is nearest the specified panel.
If the panel is on more than one monitor, the function returns the monitor that contains the majority of the panel.
Parameters
Input | ||
Name | Type | Description |
panelHandle | int | Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel. |
Output | ||
Name | Type | Description |
monitorID | int | The ID of the monitor that contains the majority of the specified panel or is nearest to the specified panel. |
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 GetMonitorFromPanel function.