person.cpp
来自「这是一个大学校园的数据库管理系统,请大家提意见」· C++ 代码 · 共 49 行
CPP
49 行
// Person.cpp: implementation of the CPerson class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CollegeManageDemo.h"
#include "MainFrm.h"
#include "CollegeManageDemoDoc.h"
#include "CollegeManageDemoView.h"
#include "Person.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CPerson::CPerson()
{
CMainFrame* pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
CCollegeManageDemoView *pView;
pView = (CCollegeManageDemoView*)pFrame->GetActiveView();
// pView->Clear();
CDC* pDC = pView->GetDC();
CFont cjcf;
pDC->SetROP2(R2_COPYPEN);
cjcf.CreateFont(20,10,0,0,50,0,0,0,255,OUT_TT_PRECIS,
CLIP_CHARACTER_PRECIS,DEFAULT_QUALITY,FIXED_PITCH,"宋体");
CFont *cjcbakf = pDC->SelectObject(&cjcf);
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(0,0,50));
pDC->TextOut(100,200,"CPerson::CPerson()被调用!");
// pView->Invalidate();
}
CPerson::~CPerson()
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?