HRGN CreateRoundRectRgn(X1,Y1,X2,Y2,X3,Y3)
This function creates a rectangular region with rounded corners.
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. | |
X3 | int Specifies the width of the ellipse used to create the rounded corners. | |
Y3 | int Specifies the height of the ellipse used to create the rounded corners. |
The return value identifies a new region if the function was 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.