www.pudn.com > 12052.rar > 12052View.cpp
// 12052View.cpp : implementation of the CMy12052View class
//
#include "stdafx.h"
#include "12052.h"
#include "12052Doc.h"
#include "12052View.h"
#include "PropSheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMy12052View
IMPLEMENT_DYNCREATE(CMy12052View, CView)
BEGIN_MESSAGE_MAP(CMy12052View, CView)
//{{AFX_MSG_MAP(CMy12052View)
ON_COMMAND(IDM_PROPERTYSHEET, OnPropertysheet)
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CMy12052View construction/destruction
CMy12052View::CMy12052View()
{
// TODO: add construction code here
}
CMy12052View::~CMy12052View()
{
}
BOOL CMy12052View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMy12052View drawing
void CMy12052View::OnDraw(CDC* pDC)
{
CMy12052Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMy12052View printing
BOOL CMy12052View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CMy12052View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CMy12052View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CMy12052View diagnostics
#ifdef _DEBUG
void CMy12052View::AssertValid() const
{
CView::AssertValid();
}
void CMy12052View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMy12052Doc* CMy12052View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMy12052Doc)));
return (CMy12052Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMy12052View message handlers
void CMy12052View::OnPropertysheet()
{
// TODO: Add your command handler code here
CPropSheet propsheet("±íµ¥");
propsheet.SetWizardMode();
propsheet.DoModal();
}