网站首页  词典首页

请输入您要查询的函数:

 

术语 createrectrgn
释义 CreateRectRgn
语法:
HRGN CreateRectRgn(
__in int nLeftRect,
__in int nTopRect,
__in int nRightRect,
__in int nBottomRect
);
CreateRectRgn函数
该CreateRectRgn函数创建一个矩形区域。
参数
nLeftRect [in]
指定的X坐标的逻辑单元区域的左上角。
nTopRect [in]
指定的y坐标中的逻辑单元区域的左上角。
nRightRect [in]
指定的X坐标下,在逻辑单元区域的右上角。
nBottomRect [in]
指定的y坐标下的逻辑单位在区域右上角。
返回值
如果函数成功,返回值是处理该地区。
如果函数失败,返回值为NULL。
备注
当您不再需要HRGN对象,调用DeleteObject函数将其删除。
地区坐标表示为27位有符号整数。
通过创建 Rgn方法(如CreateRectRgn和CreatePolygonRgn)只包括形状的内部,该形状的轮廓是来自该地区之外创建的地区。这意味着,任何在连续两个顶点线点不在该区域。如果您要求提供这种点PtInRegion,它将返回零的结果。
实例
有关示例,请参见图标记。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
地区概况
区域函数
CreatePolygonRgn
CreatePolyPolygonRgn
CreateRectRgnIndirect
CreateRoundRectRgn
ExtCreateRegion
GetRegionData
DeleteObject
SelectObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreateRectRgn Function
The CreateRectRgn function creates a rectangular region.
Syntax
HRGN CreateRectRgn(
__in int nLeftRect,
__in int nTopRect,
__in int nRightRect,
__in int nBottomRect
);
Parameters
nLeftRect [in]
Specifies the x-coordinate of the upper-left corner of the region in logical units.
nTopRect [in]
Specifies the y-coordinate of the upper-left corner of the region in logical units.
nRightRect [in]
Specifies the x-coordinate of the lower-right corner of the region in logical units.
nBottomRect [in]
Specifies the y-coordinate of the lower-right corner of the region in logical units.
Return Value
If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is NULL.
Remarks
When you no longer need the HRGN object, call the DeleteObject function to delete it.
Region coordinates are represented as 27-bit signed integers.
Regions created by the CreateRgn methods (such as CreateRectRgn and CreatePolygonRgn ) only include the interior of the shape; the shape's outline is excluded from the region. This means that any point on a line between two sequential vertices is not included in the region. If you were to call PtInRegion for such a point, it would return zero as the result.
Examples
For an example, see Drawing Markers.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Regions Overview
Region Functions
CreatePolygonRgn
CreatePolyPolygonRgn
CreateRectRgnIndirect
CreateRoundRectRgn
ExtCreateRegion
GetRegionData
DeleteObject
SelectObject
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183514(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 更新时间:2025/1/9 3:59:00