网站首页  词典首页

请输入您要查询的函数:

 

术语 dptolp
释义 DPtoLP
语法:
BOOL DPtoLP(
__in HDC hdc,
__inout LPPOINT lpPoints,
__in int nCount
);
DPtoLP函数
该DPtoLP函数转换成逻辑坐标设备坐标。该转换取决于设备上下文的映射模式,在出发地和窗口和视程度设置和世界的改造。
参数
hdc [in]
一个句柄,设备上下文。
lpPoints [ in , out ]
对一个Point结构数组的指针。 x和y坐标中每个POINT结构将会发生改变。
nCount [in]
数组中的点数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该DPtoLP函数失败如果设备坐标超过27位,或者逻辑坐标的转换超过32位。在这样的溢出情况下,所有各点的结果是不确定的。
实例
有关示例,请参阅使用空间和坐标转换。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
坐标空间和转换概述
坐标空间与变换函数
LPtoDP

如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DPtoLP Function
The DPtoLP function converts device coordinates into logical coordinates. The conversion depends on the mapping mode of the device context, the settings of the origins and extents for the window and viewport, and the world transformation.
Syntax
BOOL DPtoLP(
__in HDC hdc,
__inout LPPOINT lpPoints,
__in int nCount
);
Parameters
hdc [in]
A handle to the device context.
lpPoints [in, out]
A pointer to an array of POINT structures. The x- and y-coordinates contained in each POINT structure will be transformed.
nCount [in]
The number of points in the array.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The DPtoLP function fails if the device coordinates exceed 27 bits, or if the converted logical coordinates exceed 32 bits. In the case of such an overflow, the results for all the points are undefined.
Examples
For an example, see Using Coordinate Spaces and Transformations .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Coordinate Spaces and Transformations Overview
Coordinate Space and Transformation Functions
LPtoDP
POINT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162474(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:23:17