sortdlg.cpp
来自「VC编程对ACCESS数据库进行记录读,查询,以及添加.」· C++ 代码 · 共 67 行
CPP
67 行
// SortDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MyDao.h"
#include "SortDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSortDlg dialog
CSortDlg::CSortDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSortDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSortDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSortDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSortDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSortDlg, CDialog)
//{{AFX_MSG_MAP(CSortDlg)
ON_BN_CLICKED(IDC_RADIO_AGE, OnRadioAge)
ON_BN_CLICKED(IDC_RADIO_EMPLOYEE, OnRadioEmployee)
ON_BN_CLICKED(IDC_RADIO_SEX, OnRadioSex)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSortDlg message handlers
void CSortDlg::OnRadioAge()
{
// TODO: Add your control notification handler code here
m_strSort="Employee";
}
void CSortDlg::OnRadioEmployee()
{
// TODO: Add your control notification handler code here
m_strSort="Sex";
}
void CSortDlg::OnRadioSex()
{
// TODO: Add your control notification handler code here
m_strSort="Age";
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?