【VC开源代码栏目提醒】:本文主要为网学会员提供CToolBar5View.cpp,希望对需要CToolBar5View.cpp网友有所帮助,学习一下!
// CToolBar5View.cpp : implementation of the CCToolBar5View class
//
#include "stdafx.h"
#include "CToolBar5.h"
#include "CToolBar5Doc.h"
#include "CToolBar5View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCToolBar5View
IMPLEMENT_DYNCREATE(CCToolBar5View, CView)
BEGIN_MESSAGE_MAP(CCToolBar5View, CView)
//{{AFX_MSG_MAP(CCToolBar5View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCToolBar5View construction/destruction
CCToolBar5View::CCToolBar5View()
{
// TODO: add construction code here
}
CCToolBar5View::~CCToolBar5View()
{
}
BOOL CCToolBar5View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCToolBar5View drawing
void CCToolBar5View::OnDraw(CDC* pDC)
{
CCToolBar5Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCToolBar5View printing
BOOL CCToolBar5View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCToolBar5View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCToolBar5View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCToolBar5View diagnostics
#ifdef _DEBUG
void CCToolBar5View::AssertValid() const
{
CView::AssertValid();
}
void CCToolBar5View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCToolBar5Doc* CCToolBar5View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCToolBar5Doc)));
return (CCToolBar5Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCToolBar5View message handlers
上一篇:
daycount.frm
下一篇:
那些令你为之触动的好句子,感慨万分