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

📄 dlgselclass.cpp

📁 学生成绩查询系统.帮忙大家学生和提升对VC++的学生和认识.
💻 CPP
字号:
// DlgSelClass.cpp : implementation file
//

#include "stdafx.h"
#include "Student.h"
#include "DlgSelClass.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgSelClass dialog


CDlgSelClass::CDlgSelClass(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSelClass::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSelClass)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDlgSelClass::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSelClass)
	DDX_Control(pDX, IDC_LIST_CLASS, m_lstClass);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSelClass, CDialog)
	//{{AFX_MSG_MAP(CDlgSelClass)
	ON_LBN_DBLCLK(IDC_LIST_CLASS, OnDblclkListClass)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSelClass message handlers

BOOL CDlgSelClass::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_lstClass.AddString("061431");
	m_lstClass.AddString("061432");
	m_Class = "";
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDlgSelClass::OnOK() 
{
	// TODO: Add extra validation here
	int iSel = m_lstClass.GetCurSel();
	if (iSel != LB_ERR)
		m_lstClass.GetText(m_lstClass.GetCurSel(), m_Class);
	
	CDialog::OnOK();
}

void CDlgSelClass::OnDblclkListClass() 
{
	// TODO: Add your control notification handler code here
	int iSel = m_lstClass.GetCurSel();
	if (iSel != LB_ERR)
		m_lstClass.GetText(m_lstClass.GetCurSel(), m_Class);
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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