[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
MoveTo( hDC, nCol, nRow )-> <nlOldPos>
------------------------------------------------------------------------------
PARAMETER:
<hDC> handle that identifies the device context we are going to
paint to.
<nCol> Target column
<nRow> Target row
RETURNS:
<nlOldPos> is a long Integer value that stores the old position.
The nLoWord( <nlOldValue> ) contains the old nCol, and the
nHiWord( <nLOldValue> ) contains the old nRow.
DESCRIPTION:
Some API GDI painting functions like LineTo() require to previously
determinate the position where to start painting.
This is done with MoveTo(), it moves the current position to the
specified coordinates.
EXAMPLE:
+-------------------------------------------------------------+
| /* Get Device context and move to x,y */ |
| hDC := GetDC( oWnd:hWnd ) |
| MoveTo( hDC, 10, 10 ) |
| |
| /* Create new Pen and draw the line */ |
| LineTo( hDC, 10, 80, CreatePen( PS_SOLID, 1, CLR_BLACK )) |
| ReleaseDC( hDC ) |
+-------------------------------------------------------------+
SOURCE:
SOURCE\WINAPI\MOVETO.C
See Also:
LineTo
hDC
nLoWord
nHiWord
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson