Group: Region - Library: gdi32
Fills the specified buffer with data describing a region. This data includes the dimensions of the rectangles that make up the region.
Finding parameters for the region specified
DWORD GetRegionData(
HRGN hRgn, // handle to region
DWORD dwCount, // size of region data buffer
LPRGNDATA lpRgnData // region data buffer
);
DECLARE INTEGER GetRegionData IN gdi32;
INTEGER hRgn,;
INTEGER dwCount,;
STRING @ lpRgnData
hRgn [in] Handle to the region.
dwCount [in] Specifies the size, in bytes, of the lpRgnData buffer.
lpRgnData [out] Pointer to a RGNDATA structure that receives the information.
If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount.
A quite usefull function if you need to know geometrical parameters for a region defined by a handle.