网站首页  词典首页

请输入您要查询的函数:

 

术语 setviewportorgex
释义 SetViewportOrgEx
语法:
BOOL SetViewportOrgEx(
__in HDC hdc,
__in int X,
__in int Y,
__out LPPOINT lpPoint
);
SetViewportOrgEx功能
该SetViewportOrgEx函数指定点的设备映射到窗口原点(0,0)。
参数
hdc [in]
一个句柄,设备上下文。
X [in]
的x坐标,设备单位,新视口的起源。
y [in]
在y坐标,设备单位,新视口的起源。
lpPoint [out]
一个POINT结构,它接收前视起源指针,在设备坐标。如果lpPoint为NULL,这个参数是不使用。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
这个函数(连同SetViewportExtEx和SetWindowExtEx)帮助确定从逻辑坐标空间的映射(也称为窗口)到设备坐标空间(视口)。 SetViewportOrgEx指定点的设备映射到逻辑点(0,0)。它具有移动的轴,使逻辑点(0,0效果)不再是指左上角。
/ /地图的逻辑点(0,0)到设备点(xViewOrg,原点)
SetViewportOrgEx(探知,xViewOrg,原点,空)
这是有关SetWindowOrgEx功能。通常,您会使用一个函数或其他,但不能两者。您的SetWindowOrgEx和SetViewportOrgEx,设备点(0,0)的使用无论总是左上角。
实例
有关示例,请参见更新重新划定区域。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
坐标空间和转换概述
坐标空间与变换函数
GetViewportOrgEx

SetWindowOrgEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetViewportOrgEx Function
The SetViewportOrgEx function specifies which device point maps to the window origin (0,0).
Syntax
BOOL SetViewportOrgEx(
__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 device units, of the new viewport origin.
Y [in]
The y-coordinate, in device units, of the new viewport origin.
lpPoint [out]
A pointer to a POINT structure that receives the previous viewport origin, in device coordinates. 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 function (along with SetViewportExtEx and SetWindowExtEx ) helps define the mapping from the logical coordinate space (also known as a window) to the device coordinate space (the viewport). SetViewportOrgEx specifies which device point maps to the logical 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 (0,0) to the device point (xViewOrg, yViewOrg)
SetViewportOrgEx ( hdc, xViewOrg, yViewOrg, NULL)
This is related to the SetWindowOrgEx 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.
Examples
For an example, see Redrawing in the Update Region .
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
POINT
SetWindowOrgEx
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145099(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:22:36