HRGN CreateRoundRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect, nWidthEllipse, nHeightEllipse) | |||||
int nLeftRect; | /* x-coordinate upper-left corner of region | */ | |||
int nTopRect; | /* y-coordinate upper-left corner of region | */ | |||
int nRightRect; | /* x-coordinate lower-right corner of region | */ | |||
int nBottomRect; | /* y-coordinate lower-right corner of region | */ | |||
int nWidthEllipse; | /* height of ellipse for rounded corners | */ | |||
int nHeightEllipse; | /* width of ellipse for rounded corners | */ |
The CreateRoundRectRgn function creates a rectangular region with rounded corners.
nLeftRect
Specifies the x-coordinate of the upper-left corner of the region.
nTopRect
Specifies the y-coordinate of the upper-left corner of the region.
nRightRect
Specifies the x-coordinate of the lower-right corner of the region.
nBottomRect
Specifies the y-coordinate of the lower-right corner of the region.
nWidthEllipse
Specifies the width of the ellipse used to create the rounded corners.
nHeightEllipse
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 0.
DeleteObject, SelectObject