⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 baseinfodlg.cpp

📁 燕山大学监考系统
💻 CPP
字号:
// BaseInfoDlg.cpp : implementation file
//

#include "stdafx.h"
#include "M_ESystem.h"
#include "BaseInfoDlg.h"
#include "M_ESystemDoc.h"
#include "M_ESystemView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CBaseInfoDlg dialog


CBaseInfoDlg::CBaseInfoDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CBaseInfoDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CBaseInfoDlg)
	m_subject = _T("");
	m_time = _T("");
	//}}AFX_DATA_INIT
}


void CBaseInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CBaseInfoDlg)
	DDX_Text(pDX, IDC_EDIT1, m_subject);
	DDX_Text(pDX, IDC_EDIT2, m_time);
	
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CBaseInfoDlg, CDialog)
	//{{AFX_MSG_MAP(CBaseInfoDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBaseInfoDlg message handlers

void CBaseInfoDlg::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
//	UpdateData(TRUE);
	CM_ESystemDoc* pDoc = (CM_ESystemDoc*)this->GetParentFrame()->GetActiveDocument();
	CM_ESystemView* pView = (CM_ESystemView*)this->GetParentFrame()->GetActiveView();
	if (m_subject.IsEmpty()||m_time.IsEmpty())
	{
		MessageBox("缺少足够的信息,请检查后重新输入 !!!");
	}
	else
	{
		UpdateData(TRUE);	
	pDoc->m_Subject = m_subject;
	//MessageBox(pDoc->m_Subject);
	pDoc->m_Time = m_time;


	}

}

⌨️ 快捷键说明

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