解决方案 »
- vc6如何取系统已经安装的软件信息?急急
- 多实名文件映射对象怎么管理?
- SSL的证书问题
- 能不能在一个CDialog上创建一个CHtmlView,并且不要文档类?
- 高手请来指教一下:我想在一个对话框程序中,动态的添加属性页,并且在每个属性页中动态的添加编辑控件,请问要怎么做啊,最好有DEMO,谢谢
- 做了个鼠标的全局勾子,为什么处理按键按下,弹起消息时无效,移动可以~?
- 40G的硬盘,还能通过看主引导来得知磁盘的主分区大小吗??
- 高分求教关于FastMarching算法的问题
- 如何得到另一窗口中的控件Edit Box(m_MyString)的值
- 线程实现问题
- 关于VC++6.0的一个设置问题
- 智能卡 SELECT 命令看不懂
BOOL Rectangle( int x1, int y1, int x2, int y2 );BOOL Rectangle( LPCRECT lpRect );Return ValueNonzero if the function is successful; otherwise 0.Parametersx1Specifies the x-coordinate of the upper-left corner of the rectangle (in logical units).y1Specifies the y-coordinate of the upper-left corner of the rectangle (in logical units).x2Specifies the x-coordinate of the lower-right corner of the rectangle (in logical units).y2Specifies the y-coordinate of the lower-right corner of the rectangle (in logical units).lpRectSpecifies the rectangle in logical units. You can pass either a CRect object or a pointer to a RECT structure for this parameter.
-------------------------------------------------------
CDC::LineTo
BOOL LineTo( int x, int y );BOOL LineTo( POINT point );Return ValueNonzero if the line is drawn; otherwise 0.ParametersxSpecifies the logical x-coordinate of the endpoint for the line.ySpecifies the logical y-coordinate of the endpoint for the line.pointSpecifies the endpoint for the line. You can pass either a POINT structure or a CPoint object for this parameter.
================================================
CDC::Ellipse
This method draws an ellipse.BOOL Ellipse(
int x1,
int y1,
int x2,
int y2 );BOOL Ellipse(
LPCRECT lpRect );
Parameters
x1
The logical x-coordinate of the upper-left corner of the bounding rectangle of the ellipse.
y1
The logical y-coordinate of the upper-left corner of the bounding rectangle of the ellipse.
x2
The logical x-coordinate of the lower-right corner of the bounding rectangle of the ellipse.
y2
The logical y-coordinate of the lower-right corner of the bounding rectangle of the ellipse.
lpRect
The bounding rectangle of the ellipse. You can also pass a CRect object for this parameter.
===========================
x2-x1 == y2-y1的时候就是圆形