📄 sort.cpp
字号:
// Sort.cpp : implementation file
//
#include "stdafx.h"
#include "student.h"
#include "Sort.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSort dialog
CSort::CSort(CWnd* pParent /*=NULL*/)
: CDialog(CSort::IDD, pParent)
{
//{{AFX_DATA_INIT(CSort)
//}}AFX_DATA_INIT
}
void CSort::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSort)
DDX_Control(pDX, IDC_COMBO1, m_sort);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSort, CDialog)
//{{AFX_MSG_MAP(CSort)
ON_WM_CANCELMODE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSort message handlers
void CSort::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
m_sort.GetLBText(m_sort.GetCurSel(),m_Getstring);
CDialog::OnOK();
}
BOOL CSort::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_sort.SetCurSel(0);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CSort::OnCancelMode()
{
CDialog::OnCancelMode();
// TODO: Add your message handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -