SetRectRgn

Syntax

void SetRectRgn(hRgn,X1,Y1,X2,Y2)

This function creates a rectangular region. Unlike CreateRectRegion, however, it does not call the local memory manager; instead, it uses the space allocated for the region associated with the hRgn parameter. The points given by the X1, Y1, X2, and Y2 parameters specify the minimum size of the allocated space.

Parameter Type/Description  

hRgn HANDLE Identifies the region.  
X1 int Specifies the x-coordinate of the upper-left corner of the rectangular region.  
Y1 int Specifies the y-coordinate of the upper-left corner of the rectangular region.  
X2 int Specifies the x-coordinate of the lower-right corner of the rectangular region.  
Y2 int Specifies the y-coordinate of the lower-right corner of the rectangular region.  

Return Value

None.

Comments

Use this function instead of the CreateRectRgn function to avoid calls to the local memory manager.