术语 | setwindoworgex |
释义 | SetWindowOrgEx 语法: BOOL SetWindowOrgEx( __in HDC hdc, __in int X, __in int Y, __out LPPOINT lpPoint ); SetWindowOrgEx功能 该SetWindowOrgEx函数指定的窗口点映射到视口原点(0,0)。 参数 hdc [in] 一个句柄,设备上下文。 X [in] 的x坐标,按逻辑单位,新的窗口原点。 y [in] 在y坐标,按逻辑单位,新的窗口原点。 lpPoint [out] 阿联网结构的接收窗口前起源于逻辑单位,指针。如果lpPoint为NULL,这个参数是不使用。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 备注 这有助于确定从逻辑坐标空间的映射(也称为窗口)到设备坐标空间(视口)。 SetWindowOrgEx指定的逻辑点映射到设备点(0,0)。它具有移动的轴,使逻辑点(0,0效果)不再是指左上角。 / /地图的逻辑点(xWinOrg,原点)到设备点(0,0) SetWindowOrgEx(探知,xWinOrg,原点,空) 这是有关SetViewportOrgEx功能。通常,您会使用一个函数或其他,但不能两者。您的SetWindowOrgEx和SetViewportOrgEx,设备点(0,0)的使用无论总是左上角。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 坐标空间和转换概述 坐标空间与变换函数 GetViewportOrgEx GetWindowOrgEx 点 SetViewportOrgEx 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==SetWindowOrgEx Function The SetWindowOrgEx function specifies which window point maps to the viewport origin (0,0). Syntax BOOL SetWindowOrgEx( __in HDC hdc, __in int X, __in int Y, __out LPPOINT lpPoint ); Parameters hdc [in] A handle to the device context. X [in] The x-coordinate, in logical units, of the new window origin. Y [in] The y-coordinate, in logical units, of the new window origin. lpPoint [out] A pointer to a POINT structure that receives the previous origin of the window, in logical units. If lpPoint is NULL, this parameter is not used. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Remarks This helps define the mapping from the logical coordinate space (also known as a window) to the device coordinate space (the viewport). SetWindowOrgEx specifies which logical point maps to the device point (0,0). It has the effect of shifting the axes so that the logical point (0,0) no longer refers to the upper-left corner. //map the logical point (xWinOrg, yWinOrg) to the device point (0,0) SetWindowOrgEx (hdc, xWinOrg, yWinOrg, NULL) This is related to the SetViewportOrgEx function. Generally, you will use one function or the other, but not both. Regardless of your use of SetWindowOrgEx and SetViewportOrgEx, the device point (0,0) is always the upper-left corner. 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 GetViewportOrgEx GetWindowOrgEx POINT SetViewportOrgEx Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145101(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。