This function retrieves the handle of the monitor containing the point whose coordinates are passed as parameters.
If the coordinates do not match any of the monitors, the monitor returned depends on the value of the "flag" parameter.
Context
Windows client.
Mobile Client,
Adelia Cloud client.
Parameters
NUM_BIN_4 |
x |
X-axis value of the point. |
NUM_BIN_4 |
y |
Y-axis value of the point. |
NUM_BIN_4 |
Flag |
Default behavior if an error occurs: flag = 0 returns 0 (NULL) flag = 1 returns the main monitor flag = 2 returns the monitor closest to the coordinates |
NUM_BIN_4 |
Monitor |
Monitor handle. |
Example
NUM_BIN_4 HMON
* retrieves the monitor containing the point whose coordinates are (1050 , 400)
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxGetMonitorFromWindow' 1050 400 0 HMON
List of the VaToolBx functions by topic