Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.27 KB

GetRegionData.md

File metadata and controls

57 lines (39 loc) · 1.27 KB

Home

Function name : GetRegionData

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.


Code examples:

Finding parameters for the region specified

Declaration:

DWORD GetRegionData(
  HRGN hRgn,            // handle to region
  DWORD dwCount,        // size of region data buffer
  LPRGNDATA lpRgnData   // region data buffer
);  

FoxPro declaration:

DECLARE INTEGER GetRegionData IN gdi32;
	INTEGER hRgn,;
	INTEGER dwCount,;
	STRING @ lpRgnData  

Parameters:

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.


Return value:

If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount.


Comments:

A quite usefull function if you need to know geometrical parameters for a region defined by a handle.