📄 selectserversetdlg.cpp
字号:
// SelectServersetDlg.cpp : implementation file
//
#include "stdafx.h"
#include "rmtool.h"
#include "SelectServersetDlg.h"
#include "ServerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSelectServersetDlg dialog
CSelectServersetDlg::CSelectServersetDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSelectServersetDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSelectServersetDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSelectServersetDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSelectServersetDlg)
DDX_Control(pDX, IDC_COMBO1, c_Combo);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSelectServersetDlg, CDialog)
//{{AFX_MSG_MAP(CSelectServersetDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSelectServersetDlg message handlers
BOOL CSelectServersetDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
//CServerView *pView = (CServerView*)GetParent();
CRMToolApp* pApp = (CRMToolApp*)AfxGetApp();
c_Combo.InsertString(0,"---- Select Serverset ----");
for(int i=1; i <= CURRENT_SERVERSET_NUM ; i++)
{
c_Combo.InsertString(i, pApp->m_ServerSetInfo[ i-1 ].szSetName);
}
c_Combo.SetCurSel(0);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CSelectServersetDlg::OnOK()
{
// TODO: Add extra validation here
int ret = c_Combo.GetCurSel();
if(ret == 0) return;
//ServerSetNum甫 府畔茄促.
EndDialog( ret );
//CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -