www.pudn.com > TOOLBAR11.rar > toolbarView.cpp, change:2001-05-19,size:1966b


// toolbarView.cpp : implementation of the CtoolbarView class 
// 
 
#include "stdafx.h" 
#include "toolbar.h" 
 
#include "toolbarDoc.h" 
#include "toolbarView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
 
// CtoolbarView 
 
IMPLEMENT_DYNCREATE(CtoolbarView, CView) 
 
BEGIN_MESSAGE_MAP(CtoolbarView, CView) 
	// 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() 
 
 
// CtoolbarView construction/destruction 
 
CtoolbarView::CtoolbarView() 
{ 
	// TODO: add construction code here 
 
} 
 
CtoolbarView::~CtoolbarView() 
{ 
} 
 
BOOL CtoolbarView::PreCreateWindow(CREATESTRUCT& cs) 
{ 
	// TODO: Modify the Window class or styles here by modifying 
	//  the CREATESTRUCT cs 
 
	return CView::PreCreateWindow(cs); 
} 
 
 
// CtoolbarView drawing 
 
void CtoolbarView::OnDraw(CDC* pDC) 
{ 
	CtoolbarDoc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc); 
 
	// TODO: add draw code for native data here 
} 
 
 
// CtoolbarView printing 
 
BOOL CtoolbarView::OnPreparePrinting(CPrintInfo* pInfo) 
{ 
	// default preparation 
	return DoPreparePrinting(pInfo); 
} 
 
void CtoolbarView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: add extra initialization before printing 
} 
 
void CtoolbarView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: add cleanup after printing 
} 
 
 
// CtoolbarView diagnostics 
 
#ifdef _DEBUG 
void CtoolbarView::AssertValid() const 
{ 
	CView::AssertValid(); 
} 
 
void CtoolbarView::Dump(CDumpContext& dc) const 
{ 
	CView::Dump(dc); 
} 
 
CtoolbarDoc* CtoolbarView::GetDocument() const // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CtoolbarDoc))); 
	return (CtoolbarDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
 
// CtoolbarView message handlers