【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了CStatusBar1View.cpp提供大家参考,希望对大家有所帮助!
// CStatusBar1View.cpp : implementation of the CCStatusBar1View class
//
#include "stdafx.h"
#include "CStatusBar1.h"
#include "CStatusBar1Doc.h"
#include "CStatusBar1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar1View
IMPLEMENT_DYNCREATE(CCStatusBar1View, CView)
BEGIN_MESSAGE_MAP(CCStatusBar1View, CView)
//{{AFX_MSG_MAP(CCStatusBar1View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar1View construction/destruction
CCStatusBar1View::CCStatusBar1View()
{
// TODO: add construction code here
}
CCStatusBar1View::~CCStatusBar1View()
{
}
BOOL CCStatusBar1View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar1View drawing
void CCStatusBar1View::OnDraw(CDC* pDC)
{
CCStatusBar1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar1View printing
BOOL CCStatusBar1View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCStatusBar1View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCStatusBar1View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar1View diagnostics
#ifdef _DEBUG
void CCStatusBar1View::AssertValid() const
{
CView::AssertValid();
}
void CCStatusBar1View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCStatusBar1Doc* CCStatusBar1View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCStatusBar1Doc)));
return (CCStatusBar1Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCStatusBar1View message handlers
上一篇:
CStatusBar1Doc.cpp
下一篇:
电话销售英文简历范文