【VC开源代码栏目提醒】:网学会员--在 VC开源代码编辑为广大网友搜集整理了:CToolBar6View.cpp绩等信息,祝愿广大网友取得需要的信息,参考学习。
// CToolBar6View.cpp : implementation of the CCToolBar6View class
//
#include "stdafx.h"
#include "CToolBar6.h"
#include "CToolBar6Doc.h"
#include "CToolBar6View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCToolBar6View
IMPLEMENT_DYNCREATE(CCToolBar6View, CView)
BEGIN_MESSAGE_MAP(CCToolBar6View, CView)
//{{AFX_MSG_MAP(CCToolBar6View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCToolBar6View construction/destruction
CCToolBar6View::CCToolBar6View()
{
// TODO: add construction code here
}
CCToolBar6View::~CCToolBar6View()
{
}
BOOL CCToolBar6View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCToolBar6View drawing
void CCToolBar6View::OnDraw(CDC* pDC)
{
CCToolBar6Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCToolBar6View printing
BOOL CCToolBar6View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCToolBar6View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCToolBar6View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCToolBar6View diagnostics
#ifdef _DEBUG
void CCToolBar6View::AssertValid() const
{
CView::AssertValid();
}
void CCToolBar6View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCToolBar6Doc* CCToolBar6View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCToolBar6Doc)));
return (CCToolBar6Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCToolBar6View message handlers