Region::FromHRGN 方法从 Windows 图形设备接口 (GDI) 区域创建 Windows GDI+Region 对象。
语法
Region * FromHRGN(
  [in] HRGN hRgn
);
parameters
[in] hRgn
类型: HRGN
现有 GDI 区域的句柄。
返回值
类型: 区域*
此方法返回指向新 Region 对象的指针。
要求
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] | 
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | gdiplusheaders.h (包括 Gdiplus.h) | 
| Library | Gdiplus.lib | 
| DLL | Gdiplus.dll |