vc电子时钟 圆盘状
自己vc初学开发的电子时钟欢迎大家指正 #include "stdafx.h" #include "clock.h" #include "math.h" #include <windows.h> #include <stdio.h> #include "clockDoc.h" #include "clockView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CClockView IMPLEMENT_DYNCREATE(CClockView, CView) BEGIN_MESSAGE_MAP(CClockView, CView) //{{AFX_MSG_MAP(CClockView) ON_WM_TIMER() //}}AFX_MSG_MAP // Standard printing commands ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CClockView construction/destruction CClockView::CClockView() { // TODO: add construction code here } CClockView::~CClockView() { } BOOL CClockView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CClockView drawing void CClockView::OnDraw(CDC* pDC) { double pi=3.141592653; double x,y; CClockDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here pDC->Ellipse(CRect(50,50,550,550));
- 1
- 粉丝: 0
- 资源: 3
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助