windows programming 第七章 鼠标

BOOL LineTo( HDC hdc, // device context handle int nXEnd, // x-coordinate of ending point int nYEnd // y-coordinate of ending point);


MoveToEx

The MoveToEx function updates the current position to the specified point and optionally returns the previous position.

BOOL MoveToEx(  HDC hdc,          // handle to device context  int X,            // x-coordinate of new current position  int Y,            // y-coordinate of new current position  LPPOINT lpPoint   // old current position);

Parameters

hdc
[in] Handle to a device context.
X
[in] Specifies the x-coordinate of the new position, in logical units.
Y
[in] Specifies the y-coordinate of the new position, in logical units.
lpPoint
[out] Pointer to a POINT structure that receives the previous current position. If this parameter is a NULL pointer, the previous position is not returned.
posted @ 2010-08-11 21:35  一万零一时  阅读(130)  评论(0)    收藏  举报