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