网站首页  词典首页

请输入您要查询的函数:

 

术语 pathtoregion
释义 PathToRegion
语法:
HRGN PathToRegion(
__in HDC hdc
);
PathToRegion功能
该PathToRegion函数创建一个从所到指定的设备环境所选路径区域。由此产生的地区使用的设备坐标。
参数
hdc [in]
句柄设备环境,它包含一个封闭的道路。
返回值
如果函数成功,返回值确定一个有效的地区。
如果函数失败,返回值是零。
GetLastError函数可能会返回下列错误代码之一:
ERROR_CAN_NOT_COMPLETE
ERROR_INVALID_PARAMETER
ERROR_NOT_ENOUGH_MEMORY
备注
当您不再需要HRGN对象调用DeleteObject函数将其删除。
该设备的范畴内确定的HDC参数必须包含一个封闭的道路。
经过PathToRegion转换成一个区域的路径,丢弃从指定的设备环境封闭的道路系统。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==PathToRegion Function
The PathToRegion function creates a region from the path that is selected into the specified device context. The resulting region uses device coordinates.
Syntax
HRGN PathToRegion(
__in HDC hdc
);
Parameters
hdc [in]
Handle to a device context that contains a closed path.
Return Value
If the function succeeds, the return value identifies a valid region.
If the function fails, the return value is zero.
GetLastError may return one of the following error codes:
ERROR_CAN_NOT_COMPLETE
ERROR_INVALID_PARAMETER
ERROR_NOT_ENOUGH_MEMORY
Remarks
When you no longer need the HRGN object call the DeleteObject function to delete it.
The device context identified by the hdc parameter must contain a closed path.
After PathToRegion converts a path into a region, the system discards the closed path from the specified device context.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162780(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 13:23:23