📄 progressdlg.cpp
字号:
// ProgressDlg.cpp : implementation file
//
#include "stdafx.h"
#include "mbpc.h"
#include "ProgressDlg.h"
#include "MbpcDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CProgressDlg dialog
CProgressDlg::CProgressDlg(CWnd* pParent /*=NULL*/)
: CDialog(CProgressDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CProgressDlg)
//}}AFX_DATA_INIT
}
void CProgressDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CProgressDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CProgressDlg, CDialog)
//{{AFX_MSG_MAP(CProgressDlg)
ON_BN_CLICKED(IDC_DEVICE, OnDevice)
ON_BN_CLICKED(IDC_ANALOG, OnAnalog)
ON_BN_CLICKED(IDC_METER, OnMeter)
ON_BN_CLICKED(IDC_DI, OnDi)
ON_BN_CLICKED(IDC_DO, OnDo)
ON_BN_CLICKED(IDC_ENABLE, OnEnable)
ON_BN_CLICKED(IDC_SETTING, OnSetting)
ON_BN_CLICKED(IDC_ALARM, OnAlarm)
ON_BN_CLICKED(IDC_RECORD, OnRecord)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CProgressDlg message handlers
void CProgressDlg::OnDevice()
{
// TODO: Add your control notification handler code here
m_pDoc->ReqDeviceinfo();
}
//DEL CMbpcDoc* CProgressDlg::GetDocument()
//DEL {
//DEL ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMbpcDoc)));
//DEL return (CMbpcDoc*)m_pDocument;
//DEL }
BOOL CProgressDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
/* CString str;
for(int i = 0; i < 64; i++)
{
str.Format("%d",i);
this->m_Comb.AddString(str);
}
UpdateData(FALSE);*/
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CProgressDlg::OnAnalog()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqAnaInfo(this->m_nComb);
}
void CProgressDlg::OnMeter()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleMeterInfo(m_nComb);
}
void CProgressDlg::OnDi()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleDiInfo(m_nComb);
}
void CProgressDlg::OnDo()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleDoInfo(m_nComb);
}
void CProgressDlg::OnEnable()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleEnableInfo(m_nComb);
}
void CProgressDlg::OnSetting()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleSettingInfo(m_nComb);
}
void CProgressDlg::OnAlarm()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleAlarmInfo(m_nComb);
}
void CProgressDlg::OnRecord()
{
// TODO: Add your control notification handler code here
// UpdateData();
// m_pDoc->ReqSingleRecordInfo(m_nComb);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -