ShowTimeView.cpp
资源名称:ShowTime.zip [点击查看]
上传用户:gzyihui
上传日期:2022-04-30
资源大小:4506k
文件大小:2k
源码类别:
状态条
开发平台:
Visual C++
- // ShowTimeView.cpp : implementation of the CShowTimeView class
- //
- #include "stdafx.h"
- #include "ShowTime.h"
- #include "ShowTimeDoc.h"
- #include "ShowTimeView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CShowTimeView
- IMPLEMENT_DYNCREATE(CShowTimeView, CView)
- BEGIN_MESSAGE_MAP(CShowTimeView, CView)
- //{{AFX_MSG_MAP(CShowTimeView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CShowTimeView construction/destruction
- CShowTimeView::CShowTimeView()
- {
- // TODO: add construction code here
- }
- CShowTimeView::~CShowTimeView()
- {
- }
- BOOL CShowTimeView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CShowTimeView drawing
- void CShowTimeView::OnDraw(CDC* pDC)
- {
- CShowTimeDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CShowTimeView diagnostics
- #ifdef _DEBUG
- void CShowTimeView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CShowTimeView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CShowTimeDoc* CShowTimeView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CShowTimeDoc)));
- return (CShowTimeDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CShowTimeView message handlers