myfirstclass.cpp

来自「四川大学教学的MFC的ppt 以及源代码」· C++ 代码 · 共 60 行

CPP
60
字号
// MyFirstClass.cpp : implementation file
//

#include "stdafx.h"
#include "s7_4.h"
#include "MyFirstClass.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyFirstClass

IMPLEMENT_DYNCREATE(CMyFirstClass, CView)

CMyFirstClass::CMyFirstClass()
{
}

CMyFirstClass::~CMyFirstClass()
{
}


BEGIN_MESSAGE_MAP(CMyFirstClass, CView)
	//{{AFX_MSG_MAP(CMyFirstClass)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyFirstClass drawing

void CMyFirstClass::OnDraw(CDC* pDC)
{
	CDocument* pDoc = GetDocument();
	// TODO: add draw code here
}

/////////////////////////////////////////////////////////////////////////////
// CMyFirstClass diagnostics

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

void CMyFirstClass::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMyFirstClass message handlers

⌨️ 快捷键说明

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