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

📄 cjdlg.cpp

📁 VC6.0开发的学生数据库管理系统的例子 适合初学者
💻 CPP
字号:
// CjDlg.cpp : implementation file
//

#include "stdafx.h"
#include "DATABASE.h"
#include "CjDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCjDlg dialog
extern CString CurrentUser;

CCjDlg::CCjDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCjDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCjDlg)
	m_ave1 = _T("");
	m_name1 = _T("");
	m_score11 = _T("");
	m_score12 = 0;
	m_score21 = _T("");
	m_score22 = 0;
	m_score31 = _T("");
	m_score32 = 0;
	m_score41 = _T("");
	m_score42 = 0;
	m_ave2 = 0.0f;
	m_score51 = _T("");
	m_score61 = _T("");
	m_score71 = _T("");
	m_score81 = _T("");
	m_score52 = 0;
	m_score62 = 0;
	m_score72 = 0;
	m_score82 = 0;
	//}}AFX_DATA_INIT
}


void CCjDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCjDlg)
	DDX_Control(pDX, IDOK, m_xiugai);
	DDX_Text(pDX, IDC_ave1, m_ave1);
	DDX_Text(pDX, IDC_name1, m_name1);
	DDX_Text(pDX, IDC_score11, m_score11);
	DDX_Text(pDX, IDC_score12, m_score12);
	DDX_Text(pDX, IDC_score21, m_score21);
	DDX_Text(pDX, IDC_score22, m_score22);
	DDX_Text(pDX, IDC_score31, m_score31);
	DDX_Text(pDX, IDC_score32, m_score32);
	DDX_Text(pDX, IDC_score41, m_score41);
	DDX_Text(pDX, IDC_score42, m_score42);
	DDX_Text(pDX, IDC_ave2, m_ave2);
	DDX_Text(pDX, IDC_score51, m_score51);
	DDX_Text(pDX, IDC_score61, m_score61);
	DDX_Text(pDX, IDC_score71, m_score71);
	DDX_Text(pDX, IDC_score81, m_score81);
	DDX_Text(pDX, IDC_score52, m_score52);
	DDX_Text(pDX, IDC_score62, m_score62);
	DDX_Text(pDX, IDC_score72, m_score72);
	DDX_Text(pDX, IDC_score82, m_score82);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CCjDlg message handlers

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