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

📄 out.cpp

📁 以前的课程设计,觉得功能不错,界面设计的也不错
💻 CPP
字号:
// Out.cpp : implementation file
//

#include "stdafx.h"
#include "Student.h"
#include "Out.h"

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

/////////////////////////////////////////////////////////////////////////////
// Out dialog


Out::Out(CWnd* pParent /*=NULL*/)
	: CDialog(Out::IDD, pParent)
{
	//{{AFX_DATA_INIT(Out)
	m_id = _T("");
    m_xuan=FALSE;
	//}}AFX_DATA_INIT
}


void Out::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Out)
	DDX_Text(pDX, IDC_ID, m_id);

	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Out, CDialog)
	//{{AFX_MSG_MAP(Out)
	ON_BN_CLICKED(ID_OUT, OnOut)
	ON_COMMAND(ID_INPUT, OnInput)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Out message handlers

void Out::OnOut() 
{
	// TODO: Add your control notification handler code here
	UpdateData(1);
	if(m_id=="")
		MessageBox("请输入导出学生的编号!",NULL,MB_OK|MB_ICONINFORMATION);
	else
		CDialog::OnOK();
	
}

void Out::OnInput() 
{
	// TODO: Add your command handler code here

}

void Out::OnRadio1() 
{
	// TODO: Add your control notification handler code here
   m_xuan=0;	
}

void Out::OnRadio2() 
{
	// TODO: Add your control notification handler code here
	m_xuan=1;
}

⌨️ 快捷键说明

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