This function retrieves the coordinates of the monitor or monitor workspace passed as a parameter.
Context
Windows client.
Mobile client,
Adelia Cloud client.
Parameters
NUM_BIN_4 |
Monitor |
Monitor handle. |
NUM_BIN_4 |
Flag |
Indicates whether the coordinates of the monitor, or those of its workspace should be returned: flag = 0 returns the monitor coordinates flag = 1 returns the coordinates of the monitor workspace (excludes the taskbar and toolbars) |
NUM_BIN_4 |
x |
X-axis value of the upper left corner of the monitor or workspace. |
NUM_BIN_4 |
y |
Y-axis value of the upper left corner of the monitor or workspace. |
NUM_BIN_4 |
cx |
Width of the monitor or workspace. |
NUM_BIN_4 |
cy |
Height of the monitor or workspace. |
BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was completed successfully. *FALSE if the operation failed. |
Example
NUM_BIN_4 HMON
NUM_BIN_4 X
NUM_BIN_4 Y
NUM_BIN_4 CX
NUM_BIN_4 CY
BOOL RC
* retrieves the coordinates of the monitor associated to the window ID_WIN0
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxGetMonitorFromWindow' ID_WIN0 0 HMON
CALL_DLL 'VATOOLBX.DLL' ' VaToolBxGetMonitorCoordinates' HMON 0 X Y CX CY RC
List of the VaToolBx functions by topic