GETMONITOR
From STX Wiki
Jump to navigationJump to search
This function returns the primary monitor if the parameter wnd is not given, otherwise it returns the monitor on which most of the window wnd is.
The primary monitor is a Windows concept. This is the monitor on which dialogs are centred by default and the application task bar appears. The Windows API (Application Programming Interface) returns the origin coordinates 0,0 for the upper left hand corner of the Primary monitor. This means that monitors left of the primary monitor have negative coordinates.
GETMONITOR [ wnd ]
- wnd
- The name of a display or dialog item to be located.
- Result
- If wnd was given, the monitor on which wnd is, otherwise, the primary monitor. Note that if there is more than one monitor on the system, the monitor range is
1
tonumberOfMonitors
(see MESSAGE DESKTOP). - see also
- GETWINDOWPOS, SETWINDOWPOS, GETDESKTOP