retiretype.cpp

来自「应用vc+sqlserver做的一个保卫处数据管理系统」· C++ 代码 · 共 62 行

CPP
62
字号
// RetireType.cpp : implementation file
//

#include "stdafx.h"
#include "横店集团保卫人员管理系统.h"
#include "RetireType.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern int RetireType;
/////////////////////////////////////////////////////////////////////////////
// CRetireType dialog


CRetireType::CRetireType(CWnd* pParent /*=NULL*/)
	: CDialog(CRetireType::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRetireType)
	//}}AFX_DATA_INIT
}


void CRetireType::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRetireType)
	DDX_Control(pDX, IDC_RADIO2, m_cizhi);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRetireType, CDialog)
	//{{AFX_MSG_MAP(CRetireType)
	ON_BN_CLICKED(IDC_BUTTON1, OnSure)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRetireType message handlers
BOOL CRetireType::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_cizhi.SetCheck(true);
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CRetireType::OnSure() 
{
	if(m_cizhi.GetCheck())	
		RetireType=1;
	else
		RetireType=0;
	this->OnOK();
}

⌨️ 快捷键说明

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