术语 | lptodp |
释义 | LPtoDP 语法: BOOL LPtoDP( __in HDC hdc, __inout LPPOINT lpPoints, __in int nCount ); LPtoDP函数 该LPtoDP函数将逻辑坐标到设备坐标。该转换取决于设备上下文的映射模式,在出发地和窗口和视程度设置和世界的改造。 参数 hdc [in] 一个句柄,设备上下文。 lpPoints [ in , out ] 对一个Point结构数组的指针。的x坐标和y坐标的点都包含结构将会发生改变。 nCount [in] 数组中的点数。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 备注 这个函数失败如果逻辑坐标超过32位,或者如果设备坐标转换超过27位。在这样的溢出情况下,所有各点的结果是不确定的。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 坐标空间和转换概述 坐标空间与变换函数 DPtoLP 点 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==LPtoDP Function The LPtoDP function converts logical coordinates into device 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 LPtoDP( __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-coordinates and y-coordinates contained in each of the POINT structures 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 This function fails if the logical coordinates exceed 32 bits, or if the converted device coordinates exceed 27 bits. In the case of such an overflow, the results for all the points are undefined. 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 DPtoLP POINT Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145042(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。