函数功能:该函数画一个带圆角的矩形,此矩形由当前画笔画轮廊,由当前画刷填充。

    函数原型:BOOL RoundRect(HDC hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidth, int nHeight);

    参数:

    hdc:设备环境句柄。

    nLeftRect:指定矩形左上角的X坐标。

    nTopRect:指定矩形左上角的Y坐标。

    nRightRect:指定矩形右上角的X坐标。

    nbottomRect:指定矩形右上角的Y坐标。

    nWidth:指定用来画圆角的椭圆的宽。

    nHeight:指定用来画圆角的椭圆的高。

    返回值:如果函数调用成功,则返回值非空,否则返回值是0。

    Windows NT:若想获得更多的错误信息,请调用GetLastError函数。

    备注:此函数不使用和改变当前位置。

    Windows 95和Windows 97:限定矩形的坐标之和不能超过32767。nLeftRect和nRightRect之和或nTopRect和nBottomRect之和均不能超过32767。

    速查:Windows NT:3.1及以上版本;Windows:95及以上版本;Windows CE:1.0及以上版本;头文件:wingdi.h;库文件:gdi32.lib。