Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 2.15 KB

File metadata and controls

66 lines (49 loc) · 2.15 KB

Home

Function name : CreateRectRgn

Group: Region - Library: gdi32


Creates a rectangular region.


Code examples:

Creating irregularly shaped FoxPro form using transparency color key
Setting the Window Region for a form
Finding parameters for the region specified
Using FrameRgn for displaying system colors
How to create transparent areas inside a form -- punching holes in the form
An alternative way of setting Form.Closable to False
How to draw custom Window Caption on FoxPro form
Placing On-screen Alert on top of all windows
How to make a VFP form fading out when released (GDI+ version)
How to make a VFP form fading out when released (GDI version)

Declaration:

HRGN CreateRectRgn(
  int nLeftRect,   // x-coordinate of upper-left corner
  int nTopRect,    // y-coordinate of upper-left corner
  int nRightRect,  // x-coordinate of lower-right corner
  int nBottomRect  // y-coordinate of lower-right corner
);  

FoxPro declaration:

DECLARE INTEGER CreateRectRgn IN gdi32;
	INTEGER nLeftRect,;
	INTEGER nTopRect,;
	INTEGER nRightRect,;
	INTEGER nBottomRect  

Parameters:

nLeftRect [in] Specifies the x-coordinate of the upper-left corner of the region in logical units.

nTopRect [in] Specifies the y-coordinate of the upper-left corner of the region in logical units.

nRightRect [in] Specifies the x-coordinate of the lower-right corner of the region in logical units.

nBottomRect [in] Specifies the y-coordinate of the lower-right corner of the region in logical units.


Return value:

If the function succeeds, the return value is the handle to the region. If the function fails, the return value is NULL.