Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 926 Bytes

PathToRegion.md

File metadata and controls

42 lines (28 loc) · 926 Bytes

Home

Function name : PathToRegion

Group: Path - Library: gdi32


Creates a region from the path that is selected into the specified device context. The resulting region uses device coordinates.


Code examples:

Creating a clipping region from the path selected into the device context of a form

Declaration:

HRGN PathToRegion(
  HDC hdc   // handle to DC
);  

FoxPro declaration:

DECLARE INTEGER PathToRegion IN gdi32;
	INTEGER hdc  

Parameters:

hdc [in] Handle to a device context that contains a closed path.


Return value:

If the function succeeds, the return value identifies a valid region. If the function fails, the return value is zero.