网站首页  词典首页

请输入您要查询的函数:

 

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