用VC++绘制等边三角形的实例方法

上传者: qiaoxiang | 上传时间: 2021-06-14 14:13:27 | 文件大小: 1.12MB | 文件类型: RAR
用VC++绘制等边三角形的实例方法 switch(message) { case WM_PAINT: hdc=::BeginPaint(hwnd,&ps); hP=(HPEN)CreatePen(PS_DASH,3,RGB(0,255,0)); hB=(HBRUSH)CreateHatchBrush(HS_CROSS,RGB(255,0,0)); ::SelectObject(hdc,hP); PT[0].x=100;PT[0].y=240; PT[1].x=160;PT[1].y=240; PT[2].x=130;PT[2].y=200; ::SelectObject(hdc,hB); ::Polyline(hdc,PT,3); ::MoveToEx(hdc,100,240,NULL); ::LineTo(hdc,130,200); EndPaint(hwnd,&ps); DeleteObject(hP); DeleteObject(hB); break; case WM_DESTROY: PostQuitMessage(0); default: //默认时采用系统消息默认处理函数 return DefWindowProc(hwnd,message,wParam,lParam); } return(0);

文件下载

资源详情

[{"title":"( 17 个子文件 1.12MB ) 用VC++绘制等边三角形的实例方法","children":[{"title":"绘制等边三角形","children":[{"title":"resource.h <span style='color:#111;'> 501B </span>","children":null,"spread":false},{"title":"First.cpp <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"first.rc <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"First.pdb <span style='color:#111;'> 441.00KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 76.00KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 145.00KB </span>","children":null,"spread":false},{"title":"first.res <span style='color:#111;'> 108B </span>","children":null,"spread":false},{"title":"First.ilk <span style='color:#111;'> 196.95KB </span>","children":null,"spread":false},{"title":"First.obj <span style='color:#111;'> 14.11KB </span>","children":null,"spread":false},{"title":"First.pch <span style='color:#111;'> 3.38MB </span>","children":null,"spread":false},{"title":"First.exe <span style='color:#111;'> 172.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"First.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"First.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"First.dsw <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"First.plg <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"First.dsp <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"First.aps <span style='color:#111;'> 16.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • lingxing65 :
    还好,直接画出来了,等边三角形
    2013-11-14

免责申明

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