MFC时钟程序C++源代码

上传者: ayong888911 | 上传时间: 2020-01-03 11:16:56 | 文件大小: 3.75MB | 文件类型: rar
背景类源代码: CClockBackground::~CClockBackground() { } void CClockBackground::Draw(CDC *pDC) { CPen penMain(PS_SOLID, 1, m_crMain), penOther(PS_SOLID, 1, m_crOther); CBrush brMain(m_crMain), brOther(m_crOther); CPen *pOldPen = pDC->SelectObject(&penOther); CBrush *pOldBrush = pDC->SelectObject(&brMain); CPoint ptCenter = m_rcRegion.CenterPoint(); int nRadius = m_nRadius - 8; for(int i = 0; i Ellipse(rcDot); } pDC -> SelectObject(&penMain); pOldBrush = pDC -> SelectObject(&brOther); for(i = 0; i Rectangle(rcDot); } pDC -> SelectObject(pOldPen); pDC -> SelectObject(pOldBrush); }

文件下载

资源详情

[{"title":"( 57 个子文件 3.75MB ) MFC时钟程序C++源代码","children":[{"title":"Clock","children":[{"title":"ClockEx.cpp <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"Clock.dsw <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"Clock.rc <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"ClockHourHand.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ClockHourHand.obj <span style='color:#111;'> 9.52KB </span>","children":null,"spread":false},{"title":"ClockMinHand.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ClockSecHand.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"ClockEx.obj <span style='color:#111;'> 18.69KB </span>","children":null,"spread":false},{"title":"Clock.bsc <span style='color:#111;'> 3.52MB </span>","children":null,"spread":false},{"title":"Clock.exe <span style='color:#111;'> 112.06KB </span>","children":null,"spread":false},{"title":"ClockBackground.obj <span style='color:#111;'> 8.98KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 225.00KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 103.08KB </span>","children":null,"spread":false},{"title":"Clock.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ClockSecHand.obj <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false},{"title":"Clock.res <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"ClockEx.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"Clock.ilk <span style='color:#111;'> 290.65KB </span>","children":null,"spread":false},{"title":"ClockMinHand.obj <span style='color:#111;'> 9.24KB </span>","children":null,"spread":false},{"title":"ClockElement.obj <span style='color:#111;'> 6.22KB </span>","children":null,"spread":false},{"title":"Clock.pch <span style='color:#111;'> 6.61MB </span>","children":null,"spread":false},{"title":"ClockDlg.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"Clock.pdb <span style='color:#111;'> 433.00KB </span>","children":null,"spread":false},{"title":"ClockBackground.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"StdAfx.sbr <span style='color:#111;'> 1.31MB </span>","children":null,"spread":false},{"title":"ClockElement.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ClockDlg.obj <span style='color:#111;'> 23.29KB </span>","children":null,"spread":false},{"title":"Clock.obj <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Clock.ncb <span style='color:#111;'> 73.00KB </span>","children":null,"spread":false},{"title":"ClockDlg.cpp <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"ClockMinHand.h <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"ClockMinHand.cpp <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"Clock.clw <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"Clock.h <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"Clock.cpp <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"ClockBackground.cpp <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"ClockBackground.h <span style='color:#111;'> 647B </span>","children":null,"spread":false},{"title":"ClockDlg.h <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"ClockSecHand.h <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Clock.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Clock.rc2 <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"Clock2 .ico <span style='color:#111;'> 193.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"ClockHourHand.cpp <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"ClockElement.cpp <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Clock.opt <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"ClockHourHand.h <span style='color:#111;'> 631B </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"Clock.aps <span style='color:#111;'> 228.48KB </span>","children":null,"spread":false},{"title":"ClockSecHand.cpp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ClockElement.h <span style='color:#111;'> 857B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"ClockEx.h <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"Clock.plg <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"Clock.dsp <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 秦州秀士 :
    没用到,希望对别人有帮助
    2018-01-16
  • heart胤战 :
    不错,可以拿来学习
    2014-07-19
  • renwei1986 :
    代码还不错,可以
    2014-05-02
  • hpw0321 :
    非常不错的
    2014-04-07
  • nownever :
    代码写的很溜,适合学习啊
    2014-04-04

免责申明

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