HRGN CreateRoundRectRgn( int nLeftRect, // x-coordinate of the region's upper-left corner int nTopRect, // y-coordinate of the region's upper-left corner int nRightRect, // x-coordinate of the region's lower-right corner int nBottomRect, // y-coordinate of the region's lower-right corner int nWidthEllipse, // height of ellipse for rounded corners int nHeightEllipse // width of ellipse for rounded corners );前四个就是你的长方形的的坐标,后面两个就是圆角的宽和高了 CreateRoundRectRgn(0,0,100,100,20,20)后面一个问题,以前看到网上有说的,忘了
int nLeftRect, // x-coordinate of the region's upper-left corner
int nTopRect, // y-coordinate of the region's upper-left corner
int nRightRect, // x-coordinate of the region's lower-right corner
int nBottomRect, // y-coordinate of the region's lower-right corner
int nWidthEllipse, // height of ellipse for rounded corners
int nHeightEllipse // width of ellipse for rounded corners
);前四个就是你的长方形的的坐标,后面两个就是圆角的宽和高了
CreateRoundRectRgn(0,0,100,100,20,20)后面一个问题,以前看到网上有说的,忘了