网站首页  词典首页

请输入您要查询的函数:

 

术语 lineto
释义 LineTo
语法:
BOOL LineTo(
__in HDC hdc,
__in int nXEnd,
__in int nYEnd
);
LineTo函数
该LineTo函数绘制从当前位置到行,但不包括指定点。
参数
hdc [in]
句柄设备上下文。
nXEnd [in]
指定的x坐标,按逻辑单位,该行的终点。
nYEnd [in]
指定的Y -逻辑单位协调,该行的终点。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该生产线是制定使用当前笔,如果笔笔是一个几何,目前的画笔。
如果LineTo成功,当前位置设置为指定的终点。
实例
有关示例,请参见图标记。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
直线和曲线概述
线和曲线函数
MoveToEx
折线
PolylineTo
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==LineTo Function
The LineTo function draws a line from the current position up to, but not including, the specified point.
Syntax
BOOL LineTo(
__in HDC hdc,
__in int nXEnd,
__in int nYEnd
);
Parameters
hdc [in]
Handle to a device context.
nXEnd [in]
Specifies the x-coordinate, in logical units, of the line's ending point.
nYEnd [in]
Specifies the y-coordinate, in logical units, of the line's ending point.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The line is drawn by using the current pen and, if the pen is a geometric pen, the current brush.
If LineTo succeeds, the current position is set to the specified ending point.
Examples
For an example, see Drawing Markers .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Lines and Curves Overview
Line and Curve Functions
MoveToEx
Polyline
PolylineTo
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145029(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:32:14