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

📄 ifo.cpp

📁 用C++编写的学生信息管理系统 兼有数据库
💻 CPP
字号:
// Ifo.cpp : implementation file
//

#include "stdafx.h"
#include "DATABASE.h"
#include "Ifo.h"

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

/////////////////////////////////////////////////////////////////////////////
// CIfo dialog
extern CString CurrentUser;

CIfo::CIfo(CWnd* pParent /*=NULL*/)
	: CDialog(CIfo::IDD, pParent)
{
	//{{AFX_DATA_INIT(CIfo)
	m_addition = _T("");
	m_address = _T("");
	m_email = _T("");
	m_id = _T("");
	m_jlid = _T("");
	m_name = _T("");
	m_pname = _T("");
	m_ptel = _T("");
	m_stuid = _T("");
	m_zipcode = _T("");
	m_native = _T("");
	m_politic = _T("");
	m_pname2 = _T("");
	//}}AFX_DATA_INIT
}


void CIfo::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CIfo)
	DDX_Control(pDX, IDOK, m_xiugai);
	DDX_Text(pDX, IDC_IFO_ADDITION, m_addition);
	DDX_Text(pDX, IDC_IFO_ADDRESS, m_address);
	DDX_Text(pDX, IDC_IFO_EMAIL, m_email);
	DDX_Text(pDX, IDC_IFO_ID, m_id);
	DDX_Text(pDX, IDC_IFO_JLID, m_jlid);
	DDX_Text(pDX, IDC_IFO_NAME, m_name);
	DDX_Text(pDX, IDC_IFO_PNAME, m_pname);
	DDX_Text(pDX, IDC_IFO_PTEL, m_ptel);
	DDX_Text(pDX, IDC_IFO_STUID, m_stuid);
	DDX_Text(pDX, IDC_IFO_ZIP, m_zipcode);
	DDX_Text(pDX, IDC_XUEJI_NATIV, m_native);
	DDX_Text(pDX, IDC_XUEJI_POLITCS, m_politic);
	DDX_Text(pDX, IDC_IFO_PNAME2, m_pname2);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CIfo message handlers

BOOL CIfo::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	if(CurrentUser=="anonymous") m_xiugai.EnableWindow(false);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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