【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了CCHange_5View.cpp提供大家参考,希望对大家有所帮助!
// CCHange_5View.cpp : implementation of the CCCHange_5View class
//
#include "stdafx.h"
#include "CCHange_5.h"
#include "CCHange_5Doc.h"
#include "CCHange_5View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCCHange_5View
IMPLEMENT_DYNCREATE(CCCHange_5View, CView)
BEGIN_MESSAGE_MAP(CCCHange_5View, CView)
//{{AFX_MSG_MAP(CCCHange_5View)
ON_WM_CREATE()
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CCCHange_5View construction/destruction
CCCHange_5View::CCCHange_5View()
{
// TODO: add construction code here
}
CCCHange_5View::~CCCHange_5View()
{
}
BOOL CCCHange_5View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_5View drawing
void CCCHange_5View::OnDraw(CDC* pDC)
{
CCCHange_5Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_5View printing
BOOL CCCHange_5View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCCHange_5View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCCHange_5View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_5View diagnostics
#ifdef _DEBUG
void CCCHange_5View::AssertValid() const
{
CView::AssertValid();
}
void CCCHange_5View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCCHange_5Doc* CCCHange_5View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCCHange_5Doc)));
return (CCCHange_5Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCCHange_5View message handlers
int CCCHange_5View::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
SetClassLong(m_hWnd,GCL_HBRBACKGROUND,(LONG)GetStockObject(GRAY_BRUSH));
SetClassLong(m_hWnd,GCL_HCURSOR,(LONG)LoadCursor(NULL,IDC_HELP));
return 0;
}
上一篇:
CCHange_5Doc.cpp
下一篇:
学生信息管理系统