📄 switchcomdlg.cpp
字号:
// SwitchComDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Server.h"
#include "SwitchComDlg.h"
#include "ServerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSwitchComDlg dialog
CSwitchComDlg::CSwitchComDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSwitchComDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSwitchComDlg)
m_strSelectName = _T("");
//}}AFX_DATA_INIT
}
void CSwitchComDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSwitchComDlg)
DDX_Control(pDX, IDC_LOCKING_COMBO, m_cComputer);
DDX_CBString(pDX, IDC_LOCKING_COMBO, m_strSelectName);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSwitchComDlg, CDialog)
//{{AFX_MSG_MAP(CSwitchComDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSwitchComDlg message handlers
BOOL CSwitchComDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CMenu* pSysMenu = GetSystemMenu(FALSE);
pSysMenu->ModifyMenu(SC_CLOSE,MF_BYCOMMAND | MF_GRAYED );
CString strTemp;
POSITION pos = str.GetHeadPosition();
while(pos != NULL)
{
strTemp = str.GetNext(pos);
this->m_cComputer.AddString(strTemp);
}
this->m_cComputer.SetCurSel(0);
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 + -