描述
CreateRoundRectRgn函数创建一个带圆角的矩形区域。
C++ 语法
HRGN CreateRoundRectRgn( __in int nLeftRect, __in int nTopRect, __in int nRightRect, __in int nBottomRect __in int nWidthEllipse, __in int nHeightEllipse ); |
PowerBASIC 语法
FUNCTION CreateRoundRectRgn ( _ BYVAL nLeftRect AS LONG, _ BYVAL nTopRect AS LONG, _ BYVAL nRightRect AS LONG, _ BYVAL nBottomRect AS LONG, _ BYVAL nWidthEllipse AS LONG, _ BYVAL nHeightEllipse AS LONG _ ) AS DWORD |
参数
nLeftRect
[in]以设备单位指定区域左上角的x坐标。
nTopRect
[in]以设备为单位指定区域左上角的y坐标。
nRightRect
[in]以设备为单位指定区域右下角的x坐标。
nBottomRect
[in]以设备为单位指定区域右下角的y坐标。
nWidthEllipse
[in]指定用于以设备单位创建圆角的椭圆的宽度。
nHeightEllipse
[in]指定用于以设备单位创建圆角的椭圆的高度。
返回值
如果函数成功,则返回值是该区域的句柄。
如果函数失败,返回值为NULL。
备注
当您不再需要HRGN对象调用DeleteObject函数将其删除。
区域坐标表示为27位有符号整数。
引用文件 #INCLUDE Once
WinGdi.inc