全部博文(584)
分类:
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.
DWORD GetRegionData(
__in HRGN hRgn,
__in DWORD dwCount,
__out LPRGNDATA lpRgnData
);
A handle to the region.
The size, in bytes, of the lpRgnData buffer.
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.
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.
The GetRegionData function is used in conjunction with the function.