windows programming 第七章 鼠标
BOOL LineTo( HDC hdc, // device context handle int nXEnd, // x-coordinate of ending point int nYEnd // y-coordinate of ending point);
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.
浙公网安备 33010602011771号