OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Current Position Functions

GetCurrentPosition takes a reference to a TPoint object.

It places the coordinates of the current position into the TPoint object and returns true if the function call was successful.

Use the TDC::MoveTo functions to move to the current point in the device context. Three versions of MoveTo are provided:

  • MoveTo(int x, int y) moves the pen to the point x, y.
  • MoveTo(TPoint &point) moves the pen to the point point.x, point.y.
  • MoveTo(TPoint &point, TPoint &oldPoint) moves the pen to the point point.x, point.y and places the old location of the pen into oldPoint.

See Also