左上角和右下角的坐标
CDC::Ellipse
BOOLEllipse(intx1,inty1,intx2,inty2);
BOOLEllipse(LPCRECTlpRect);
ReturnValue
Nonzeroifthefunctionissuccessful;otherwise0.
Parameters
x1
Specifiesthelogicalx-coordinateoftheupper-leftcorneroftheellipse’sboundingrectangle.
y1
Specifiesthelogicaly-coordinateoftheupper-leftcorneroftheellipse’sboundingrectangle.
x2
Specifiesthelogicalx-coordinateofthelower-rightcorneroftheellipse’sboundingrectangle.
y2
Specifiesthelogicaly-coordinateofthelower-rightcorneroftheellipse’sboundingrectangle.
lpRect
Specifiestheellipse’sboundingrectangle.YoucanalsopassaCRectobjectforthisparameter