t318view.cpp

来自「小型计算器程序 ?⌒图扑闫鞒绦? 小型计算器程序」· C++ 代码 · 共 113 行

CPP
113 行
字号
// T318View.cpp : implementation of the CT318View class
//

#include "stdafx.h"
#include "T318.h"

#include "T318Doc.h"
#include "T318View.h"
#include "TEST.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CT318View

IMPLEMENT_DYNCREATE(CT318View, CView)

BEGIN_MESSAGE_MAP(CT318View, CView)
	//{{AFX_MSG_MAP(CT318View)
	ON_COMMAND(ID_CAL, OnCal)
	//}}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()

/////////////////////////////////////////////////////////////////////////////
// CT318View construction/destruction

CT318View::CT318View()
{
	// TODO: add construction code here

}

CT318View::~CT318View()
{
}

BOOL CT318View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CT318View drawing

void CT318View::OnDraw(CDC* pDC)
{
	CT318Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CT318View printing

BOOL CT318View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CT318View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CT318View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CT318View diagnostics

#ifdef _DEBUG
void CT318View::AssertValid() const
{
	CView::AssertValid();
}

void CT318View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CT318Doc* CT318View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CT318Doc)));
	return (CT318Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CT318View message handlers

void CT318View::OnCal() 
{
	// TODO: Add your command handler code here
	TEST fei;
	fei.DoModal();
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?