📄 mappage.cpp
字号:
// MapPage.cpp : implementation file
//
#include "stdafx.h"
#include "DataMan.h"
#include "MapPage.h"
#include ".\mappage.h"
#include "DataManview.h"
// CMapPage dialog
IMPLEMENT_DYNAMIC(CMapPage, CPropertyPage)
CMapPage::CMapPage()
: CPropertyPage(CMapPage::IDD)
, m_strServerName(_T(""))
, m_strServerNo(_T(""))
, m_nIPAddress(0)
, m_strYCNo(_T(""))
, m_bPortFlag(FALSE)
, m_strCOMPort(_T(""))
{
}
CMapPage::~CMapPage()
{
}
void CMapPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
DDX_Text(pDX, IDC_NAME, m_strServerName);
DDX_Text(pDX, IDC_SERIALNUMBER, m_strServerNo);
DDX_IPAddress(pDX, IDC_IPADDR, m_nIPAddress);
DDX_Text(pDX, IDC_NAME2, m_strYCNo);
DDX_Check(pDX, IDC_CHECK1, m_bPortFlag);
DDX_CBString(pDX, IDC_CMBPORT, m_strCOMPort);
}
BEGIN_MESSAGE_MAP(CMapPage, CPropertyPage)
//ON_BN_CLICKED(IDC_MICREXF, OnBnClickedMicrexf)
END_MESSAGE_MAP()
// CMapPage message handlers
BOOL CMapPage::OnInitDialog()
{
CPropertyPage::OnInitDialog();
// TODO: Add extra initialization here
//CComboBox* pList = (CComboBox*)GetDlgItem(IDC_CMBPORT);
//CString strItem;
//for (int i = 0; i<9; i++)
//{
// strItem.Format(_T("COM%d"),i+1);
// pList->AddString(strItem);
//}
//pList->SetCurSel(m_nCOMPort);
return TRUE; // return TRUE unless you set the focus to a control
//// EXCEPTION: OCX Property Pages should return FALSE
}
//void CMapPage::OnBnClickedMicrexf()
//{
// // TODO: Add your control notification handler code here
// CDataManView* pView = (CDataManView*)GetParent();
// int nPort = GetDlgItemInt(IDC_EDIT1);
// pView->SetMicrexFComPort(nPort);
// //pView->OpenMicrexF();
//}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -