www.pudn.com > BitmapToolBarResrch.zip > BitmapToolBarResrchView.cpp


// BitmapToolBarResrchView.cpp : implementation of the CBitmapToolBarResrchView class 
// 
 
#include "stdafx.h" 
#include "BitmapToolBarResrch.h" 
 
#include "BitmapToolBarResrchDoc.h" 
#include "BitmapToolBarResrchView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CBitmapToolBarResrchView 
 
IMPLEMENT_DYNCREATE(CBitmapToolBarResrchView, CEditView) 
 
BEGIN_MESSAGE_MAP(CBitmapToolBarResrchView, CEditView) 
	//{{AFX_MSG_MAP(CBitmapToolBarResrchView) 
		// 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, CEditView::OnFilePrint) 
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint) 
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview) 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CBitmapToolBarResrchView construction/destruction 
 
CBitmapToolBarResrchView::CBitmapToolBarResrchView() 
{ 
	// TODO: add construction code here 
 
} 
 
CBitmapToolBarResrchView::~CBitmapToolBarResrchView() 
{ 
} 
 
BOOL CBitmapToolBarResrchView::PreCreateWindow(CREATESTRUCT& cs) 
{ 
	// TODO: Modify the Window class or styles here by modifying 
	//  the CREATESTRUCT cs 
 
	BOOL bPreCreated = CEditView::PreCreateWindow(cs); 
	cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL);	// Enable word-wrapping 
 
	return bPreCreated; 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CBitmapToolBarResrchView drawing 
 
void CBitmapToolBarResrchView::OnDraw(CDC* pDC) 
{ 
	CBitmapToolBarResrchDoc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc); 
	// TODO: add draw code for native data here 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CBitmapToolBarResrchView printing 
 
BOOL CBitmapToolBarResrchView::OnPreparePrinting(CPrintInfo* pInfo) 
{ 
	// default CEditView preparation 
	return CEditView::OnPreparePrinting(pInfo); 
} 
 
void CBitmapToolBarResrchView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo) 
{ 
	// Default CEditView begin printing. 
	CEditView::OnBeginPrinting(pDC, pInfo); 
} 
 
void CBitmapToolBarResrchView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo) 
{ 
	// Default CEditView end printing 
	CEditView::OnEndPrinting(pDC, pInfo); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CBitmapToolBarResrchView diagnostics 
 
#ifdef _DEBUG 
void CBitmapToolBarResrchView::AssertValid() const 
{ 
	CEditView::AssertValid(); 
} 
 
void CBitmapToolBarResrchView::Dump(CDumpContext& dc) const 
{ 
	CEditView::Dump(dc); 
} 
 
CBitmapToolBarResrchDoc* CBitmapToolBarResrchView::GetDocument() // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CBitmapToolBarResrchDoc))); 
	return (CBitmapToolBarResrchDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CBitmapToolBarResrchView message handlers