📄 setsystem.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -