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 integer Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel.
Output
Name Type Description
monitorID integer (passed by reference) 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 integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Code Error Message String
xx Success