Cicode Programming Reference > Cicode Function Categories > Page Functions Introduction > PageTransformCoords

PageTransformCoords

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.

iDisplayY:

Output parameter – Transformed Y coordinate.

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, DspAnGetPo, DspGetAnExtent

See Also

Page Functions