// SecsTestDlg.cpp : ʵÏÖÎļþ // #include "stdafx.h" #include "Servo.h" #include "SecsTestDlg.h" #include "afxdialogex.h" // CSecsTestDlg ¶Ô»°¿ò IMPLEMENT_DYNAMIC(CSecsTestDlg, CDialogEx) CSecsTestDlg::CSecsTestDlg(CWnd* pParent /*=NULL*/) : CDialogEx(IDD_DIALOG_SECS_TEST, pParent) { } CSecsTestDlg::~CSecsTestDlg() { } void CSecsTestDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CSecsTestDlg, CDialogEx) ON_BN_CLICKED(IDC_BUTTON_S1F13, &CSecsTestDlg::OnBnClickedButtonS1f13) ON_BN_CLICKED(IDC_BUTTON_S1F1, &CSecsTestDlg::OnBnClickedButtonS1f1) ON_BN_CLICKED(IDC_BUTTON_S5F1_A, &CSecsTestDlg::OnBnClickedButtonS5f1A) ON_BN_CLICKED(IDC_BUTTON_S5F1_B, &CSecsTestDlg::OnBnClickedButtonS5f1B) END_MESSAGE_MAP() // CSecsTestDlg ÏûÏ¢´¦Àí³ÌÐò void CSecsTestDlg::OnBnClickedButtonS1f1() { theApp.m_model.m_hsmsPassive.requestAreYouThere(); } void CSecsTestDlg::OnBnClickedButtonS1f13() { } void CSecsTestDlg::OnBnClickedButtonS5f1A() { int ALCD, ALID; ALCD = 0; ALID = 1001; theApp.m_model.m_hsmsPassive.requestAlarmReport(ALCD, ALID, "ABC EFG"); } void CSecsTestDlg::OnBnClickedButtonS5f1B() { int ALCD, ALID; ALCD = 1; ALID = 1001; theApp.m_model.m_hsmsPassive.requestAlarmReport(ALCD, ALID, "ABCEFG"); }