Converts Page coordinates to absolute screen coordinates.
Syntax
PageTransformCoords(hPage, iPageX, iPageY , iDisplayX, iDisplayY, iType)
hPage:
Page handle of the relevant Window.
PageX:
X coordinate of page coordinate.
iPageY:
Y coordinate of page coordinate.
iDisplayX:
Output parameter: Transformed X coordinate. Must be a Long type variable.
iDisplayY:
Output parameter: Transformed Y coordinate. Must be a Long type variable.
iType:
The value of output coordinate:
0 - Absolute screen coordinates
1 - Coordinates relative to Window origin
2 - Coordinates relative to Client rectangle origin
Return Value
0 – Success
269 – ERROR_BAD_HANDLE – hPage is not a valid Page handle
274 – ERROR_INVALID_ARG – either DisplayX, DisplayY or Type is invalid.
Related Functions
PageInfo, DspGetMouse, DspAnGetPos, DspGetAnExtent
See Also
Published June 2018