网站首页  词典首页

请输入您要查询的函数:

 

术语 setviewportextex
释义 SetViewportExtEx
语法:
BOOL SetViewportExtEx(
__in HDC hdc,
__in int nXExtent,
__in int nYExtent,
__out LPSIZE lpSize
);
SetViewportExtEx功能
该SetViewportExtEx函数设置使用指定的值为设备上下文视Level和垂直程度。
参数
hdc [in]
一个句柄,设备上下文。
nXExtent [in]
的Level程度,设备的单位,视口。
nYExtent [in]
垂直的程度,在设备的单位,视口。
lpSize [out]
一个规模结构,它接收前视程度设备单位,指针。如果lpSize为NULL,这个参数是不使用。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
视口指的是设备坐标设备的空间系统。在多大程度上是一个轴的最大值。这个函数设置的设备视在Level和垂直轴坐标的最大值(或像素)。当页面之间的空间和设备空间,SetWindowExtEx和SetViewportExtEx之间的映射确定窗口和视口的比例因子。有关更多信息,请参见坐标空间变换。
当下列映射模式设置,调用SetWindowExtEx和SetViewportExtEx功能被忽略。
MM_HIENGLISH
MM_HIMETRIC
MM_LOENGLISH
MM_LOMETRIC
MM_TEXT
MM_TWIPS
当MM_ISOTROPIC模式设置,应用程序必须调用SetWindowExtEx函数之前调用SetViewportExtEx。请注意,对于一个非方屏幕MM_ISOTROPIC模式的某些部分可能没有用,因为显示两轴的逻辑单位代表平等的物理距离。
实例
有关示例,请参阅无效的客户区。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
坐标空间和转换概述
坐标空间与变换函数
GetViewportExtEx
SetWindowExtEx
尺寸
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetViewportExtEx Function
The SetViewportExtEx function sets the horizontal and vertical extents of the viewport for a device context by using the specified values.
Syntax
BOOL SetViewportExtEx(
__in HDC hdc,
__in int nXExtent,
__in int nYExtent,
__out LPSIZE lpSize
);
Parameters
hdc [in]
A handle to the device context.
nXExtent [in]
The horizontal extent, in device units, of the viewport.
nYExtent [in]
The vertical extent, in device units, of the viewport.
lpSize [out]
A pointer to a SIZE structure that receives the previous viewport extents, in device units. If lpSize 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
The viewport refers to the device coordinate system of the device space. The extent is the maximum value of an axis. This function sets the maximum values for the horizontal and vertical axes of the viewport in device coordinates (or pixels). When mapping between page space and device space, SetWindowExtEx and SetViewportExtEx determine the scaling factor between the window and the viewport. For more information, see Transformation of Coordinate Spaces .
When the following mapping modes are set, calls to the SetWindowExtEx and SetViewportExtEx functions are ignored.
MM_HIENGLISH
MM_HIMETRIC
MM_LOENGLISH
MM_LOMETRIC
MM_TEXT
MM_TWIPS
When MM_ISOTROPIC mode is set, an application must call the SetWindowExtEx function before it calls SetViewportExtEx. Note that for the MM_ISOTROPIC mode certain portions of a nonsquare screen may not be available for display because the logical units on both axes represent equal physical distances.
Examples
For an example, see Invalidating the Client Area .
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
GetViewportExtEx
SetWindowExtEx
SIZE
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145098(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:15