首页 课程资源 C/C++     /    利用鼠标绘制圆和椭圆

利用鼠标绘制圆和椭圆

上传者: qq_36605497 | 上传时间:2025/12/21 19:08:02 | 文件大小:2.2MB | 文件类型:zip
利用鼠标绘制圆和椭圆
编写应用程序,利用鼠标在视图区内绘制圆和椭圆。
要求在工具条上创建两个按钮,分别代表绘制圆和绘制椭圆。
实现代码中仅允许使用SetPixel一种绘图函数,不可以使用其他绘图函数。
绘制图形的鼠标操作方式可自行决定,此处给出一种方式作为参考:类似于绘制直线段,按下鼠标左键时的点假设为P,按住鼠标左键不放,移动鼠标到另一点处抬起鼠标左键,该点假设为Q。
绘制圆的时候,以P为圆心,PQ为圆的半径。
绘制椭圆时,将PQ作为一个矩形的对角线,绘制该矩形的内切椭圆。
本软件ID:10143130

文件下载

资源详情

[{"title":"(37个子文件2.2MB)利用鼠标绘制圆和椭圆","children":[{"title":"text1","children":[{"title":"textView.h <span style='color:#111;'>2.11KB</span>","children":null,"spread":false},{"title":"text.rc <span style='color:#111;'>11.50KB</span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'>206B</span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'>685B</span>","children":null,"spread":false},{"title":"text.plg <span style='color:#111;'>2.29KB</span>","children":null,"spread":false},{"title":"text.ncb <span style='color:#111;'>73.00KB</span>","children":null,"spread":false},{"title":".vs","children":[{"title":"text","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'>3.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"text.dsw <span style='color:#111;'>533B</span>","children":null,"spread":false},{"title":"text.h <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"textDoc.h <span style='color:#111;'>1.42KB</span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'>1.54KB</span>","children":null,"spread":false},{"title":"text.aps <span style='color:#111;'>28.39KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"textView.obj <span style='color:#111;'>29.61KB</span>","children":null,"spread":false},{"title":"text.pdb <span style='color:#111;'>329.00KB</span>","children":null,"spread":false},{"title":"text.res <span style='color:#111;'>7.38KB</span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'>356.00KB</span>","children":null,"spread":false},{"title":"text.pch <span style='color:#111;'>5.37MB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>209.00KB</span>","children":null,"spread":false},{"title":"text.obj <span style='color:#111;'>22.46KB</span>","children":null,"spread":false},{"title":"MainFrm.obj <span style='color:#111;'>19.61KB</span>","children":null,"spread":false},{"title":"text.exe <span style='color:#111;'>120.08KB</span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'>103.35KB</span>","children":null,"spread":false},{"title":"textDoc.obj <span style='color:#111;'>14.43KB</span>","children":null,"spread":false},{"title":"text.ilk <span style='color:#111;'>306.17KB</span>","children":null,"spread":false}],"spread":false},{"title":"textDoc.cpp <span style='color:#111;'>1.66KB</span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>4.16KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"text.dsp <span style='color:#111;'>4.41KB</span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'>2.45KB</span>","children":null,"spread":false},{"title":"text.clw <span style='color:#111;'>2.24KB</span>","children":null,"spread":false},{"title":"textView.cpp <span style='color:#111;'>5.76KB</span>","children":null,"spread":false},{"title":"text.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false},{"title":"res","children":[{"title":"textDoc.ico <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"text.rc2 <span style='color:#111;'>396B</span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"text.ico <span style='color:#111;'>1.05KB</span>","children":null,"spread":false}],"spread":false},{"title":"text.cpp <span style='color:#111;'>4.08KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明