Ellipse Function
函数功能该函数用于画一个椭圆,椭圆的中心是限定矩形的中心,使用当前画笔画椭圆,用当前的画刷填充椭圆。
函数原型BOOL Ellipse(HDC hdc,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect
);
参数hdc:设备环境句柄。
nLeftRect:指定限定矩形左上角的X坐标。
nTopRect:指定限定矩形左上角的Y坐标。
nRightRect:指定限定矩形右下角的X坐标。
nBottomRect:指定限定矩形右下角的Y坐标。
返回值如果函数调用成功,返回值非零;如果函数调用失败,返回值是0。
Windows NT:若想获得更多错误信息,请调用GetLastError函数。
备注椭圆既不使用也不改变当前位置。
Windows 95和Windows 98:限定矩形的坐标值之和不能超过32767。nLeftRect与nRigthRect或 nTopRectn与BottomRect之和不能超过32767。
头文件
wingdi.h
库文件
gdi32.lib
[1]