markview.cpp

来自「数据库学生成绩管理系统 VC源码 ①输出: a 学生分类查询课程成绩」· C++ 代码 · 共 81 行

CPP
81
字号
// markView.cpp : implementation of the CMarkView class
//

#include "stdafx.h"
#include "mark.h"
#include "markDoc.h"
#include "markView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMarkView

IMPLEMENT_DYNCREATE(CMarkView, CFormView)

BEGIN_MESSAGE_MAP(CMarkView, CFormView)
	//{{AFX_MSG_MAP(CMarkView)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMarkView construction/destruction

CMarkView::CMarkView()
	: CFormView(CMarkView::IDD)
{
	//{{AFX_DATA_INIT(CMarkView)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// TODO: add construction code here

}

CMarkView::~CMarkView()
{
}

void CMarkView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMarkView)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

void CMarkView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();

}

/////////////////////////////////////////////////////////////////////////////
// CMarkView diagnostics

#ifdef _DEBUG
void CMarkView::AssertValid() const
{
	CFormView::AssertValid();
}

void CMarkView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// CMarkView message handlers

⌨️ 快捷键说明

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