HRGN CreateRectRgn(X1,Y1,X2,Y2)
This function creates a rectangular region.
| Parameter | Type/Description | |
| X1 | int Specifies the x-coordinate of the upper-left corner of the region. | |
| Y1 | int Specifies the y-coordinate of the upper-left corner of the region. | |
| X2 | int Specifies the x-coordinate of the lower-right corner of the region. | |
| Y2 | int Specifies the y-coordinate of the lower-right corner of the region. |
The return value identifies a new region if the function is successful. Otherwise, it is NULL.
The width of the rectangle, specified by the absolute value of X2 – X1, must not exceed 32,767 units. This limit applies to the height of the rectangle as well.