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

📄 xxdlg.cpp

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

#include "stdafx.h"
#include "DATABASE.h"
#include "XxDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CXxDlg dialog

extern CString CurrentUser;
CXxDlg::CXxDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CXxDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CXxDlg)
	m_stuid = _T("");
	m_lesson1 = _T("");
	m_lesson2 = _T("");
	m_lesson3 = _T("");
	m_lesson4 = _T("");
	m_name = _T("");
	m_credit = 0.0f;
	//}}AFX_DATA_INIT
}


void CXxDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CXxDlg)
	DDX_Control(pDX, IDOK, m_xiugai);
	DDX_Text(pDX, IDC_ID, m_stuid);
	DDX_Text(pDX, IDC_L1, m_lesson1);
	DDX_Text(pDX, IDC_L2, m_lesson2);
	DDX_Text(pDX, IDC_L3, m_lesson3);
	DDX_Text(pDX, IDC_L4, m_lesson4);
	DDX_Text(pDX, IDC_NAME, m_name);
	DDX_Text(pDX, IDC_CREDIT, m_credit);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CXxDlg message handlers


BOOL CXxDlg::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 + -