setsystem.cpp

来自「一个加解密程序」· C++ 代码 · 共 60 行

CPP
60
字号
// setsystem.cpp : implementation file
//

#include "stdafx.h"
#include "cript.h"
#include "setsystem.h"
#include "var.h"

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

/////////////////////////////////////////////////////////////////////////////
// setsystem dialog

setsystem::setsystem(CWnd* pParent /*=NULL*/)
	: CDialog(setsystem::IDD, pParent)
{
	//{{AFX_DATA_INIT(setsystem)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	types_num=4;
}


void setsystem::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(setsystem)
	DDX_Control(pDX, IDC_LIST1, m_systemlist);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(setsystem, CDialog)
	//{{AFX_MSG_MAP(setsystem)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// setsystem message handlers

void setsystem::OnOK() 
{
	m_type=m_systemlist.GetCurSel();
	CDialog::OnOK();
}

BOOL setsystem::OnInitDialog() 
{
	CDialog::OnInitDialog();
	UINT k;
	for(k=0;k<types_num;k++)
		m_systemlist.AddString(types[k]);	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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