【VC开源代码栏目提醒】:以下是网学会员为您推荐的VC开源代码-CStatusBar3View.cpp,希望本篇文章对您学习有所帮助。
// CStatusBar3View.cpp : implementation of the CCStatusBar3View class
//
#include "stdafx.h"
#include "CStatusBar3.h"
#include "CStatusBar3Doc.h"
#include "CStatusBar3View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar3View
IMPLEMENT_DYNCREATE(CCStatusBar3View, CView)
BEGIN_MESSAGE_MAP(CCStatusBar3View, CView)
//{{AFX_MSG_MAP(CCStatusBar3View)
// 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
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar3View construction/destruction
CCStatusBar3View::CCStatusBar3View()
{
// TODO: add construction code here
}
CCStatusBar3View::~CCStatusBar3View()
{
}
BOOL CCStatusBar3View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar3View drawing
void CCStatusBar3View::OnDraw(CDC* pDC)
{
CCStatusBar3Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar3View printing
BOOL CCStatusBar3View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCStatusBar3View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCStatusBar3View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar3View diagnostics
#ifdef _DEBUG
void CCStatusBar3View::AssertValid() const
{
CView::AssertValid();
}
void CCStatusBar3View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCStatusBar3Doc* CCStatusBar3View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCStatusBar3Doc)));
return (CCStatusBar3Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar3View message handlers