Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1697149
  • 博文数量: 584
  • 博客积分: 13857
  • 博客等级: 上将
  • 技术积分: 11883
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-16 09:34

分类:

2011-01-21 14:17:07

The GetRegionData function fills the specified buffer with data describing a region. This data includes the dimensions of the rectangles that make up the region.

Syntax

DWORD GetRegionData(
__in   HRGN hRgn,
__in   DWORD dwCount,
__out  LPRGNDATA lpRgnData
);

Parameters

hRgn [in]

A handle to the region.

dwCount [in]

The size, in bytes, of the lpRgnData buffer.

lpRgnData [out]

A pointer to a structure that receives the information. The dimensions of the region are in logical units. If this parameter is NULL, the return value contains the number of bytes needed for the region data.

Return Value

If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount. If dwCount is too small or the function fails, the return value is 0. If lpRgnData is NULL, the return value is the required number of bytes.

If the function fails, the return value is zero.

Remarks

The GetRegionData function is used in conjunction with the function.

阅读(1023) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~