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

📄 dlgsort.cpp

📁 此系统为学生管理系统
💻 CPP
字号:
// DlgSort.cpp : implementation file
//

#include "stdafx.h"
#include "stmanager.h"
#include "DlgSort.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgSort dialog


CDlgSort::CDlgSort(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSort::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSort)
	m_sortchoice = 0;//默认选择姓名排序
	m_sortway = 0;//默认选择升序
	//}}AFX_DATA_INIT
}


void CDlgSort::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSort)
	DDX_Radio(pDX, IDC_RADIO_Namesort, m_sortchoice);
	DDX_Radio(pDX, IDC_RADIO_Upsort, m_sortway);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSort, CDialog)
	//{{AFX_MSG_MAP(CDlgSort)
	ON_BN_CLICKED(IDC_RADIO_Allscoresort, OnRADIOAllscoresort)
	ON_BN_CLICKED(IDC_RADIO_Cppsort, OnRADIOCppsort)
	ON_BN_CLICKED(IDC_RADIO_Downsort, OnRADIODownsort)
	ON_BN_CLICKED(IDC_RADIO_Englishsort, OnRADIOEnglishsort)
	ON_BN_CLICKED(IDC_RADIO_Mathsort, OnRADIOMathsort)
	ON_BN_CLICKED(IDC_RADIO_Numbersort, OnRADIONumbersort)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSort message handlers

void CDlgSort::OnRADIOAllscoresort() 
{
	// TODO: Add your control notification handler code here
	m_sortchoice=3;//选择总分排序
    	
}

void CDlgSort::OnRADIOCppsort() 
{
	// TODO: Add your control notification handler code here
	m_sortchoice=5;//选择C++成绩排序
	
}

void CDlgSort::OnRADIODownsort() 
{
	// TODO: Add your control notification handler code here
	m_sortway=1;//选择降序	
}

void CDlgSort::OnRADIOEnglishsort() 
{
	// TODO: Add your control notification handler code here
	m_sortchoice=6;
	
}

void CDlgSort::OnRADIOMathsort() 
{
	// TODO: Add your control notification handler code here
	m_sortchoice=4;
}

void CDlgSort::OnRADIONumbersort() 
{
	// TODO: Add your control notification handler code here
	m_sortchoice=2;
}

void CDlgSort::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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