// MatDecCFG.cpp : implementation file // #include "stdafx.h" #include "newclient.h" #include "MatDecCFG.h" #include "MatCenter.h" #include "MatColumn.h" #include "MatRow.h" #include "MatManuLink.h" #include "MatTrans.h" #include "MatDispChan.h" #include "MatDynamicTest.h" #include "MatCycLink.h" #include "MatPlayBack.h" #include "MatPassiveMode.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMatDecCFG dialog CMatDecCFG::CMatDecCFG(CWnd* pParent /*=NULL*/) : CDialog(CMatDecCFG::IDD, pParent) { //{{AFX_DATA_INIT(CMatDecCFG) //}}AFX_DATA_INIT } void CMatDecCFG::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMatDecCFG) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CMatDecCFG, CDialog) //{{AFX_MSG_MAP(CMatDecCFG) ON_BN_CLICKED(IDC_BUTCENTERSET, OnButcenterset) ON_BN_CLICKED(IDC_BUTCOLUMNSET, OnButcolumnset) ON_BN_CLICKED(IDC_BUTMANPLAY, OnButmanplay) ON_BN_CLICKED(IDC_BUTROWSET, OnButrowset) ON_BN_CLICKED(IDC_BUTTRANSSET, OnButtransset) ON_BN_CLICKED(IDC_DISPCHANCFG, OnDispchancfg) ON_BN_CLICKED(IDC_BUTDYNAMICTEST, OnButdynamictest) ON_BN_CLICKED(IDC_BUTCYCLINK, OnButcyclink) ON_BN_CLICKED(IDC_BUTREMOTEPLAYBACK, OnButremoteplayback) ON_BN_CLICKED(IDC_BUTPASSIVEMODE, OnButpassivemode) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMatDecCFG message handlers void CMatDecCFG::OnButcenterset() { // TODO: Add your control notification handler code here CMatCenter Dlg; Dlg.m_iChannelnumber = m_iChannelnumber; Dlg.m_lServerID = m_lServerID; Dlg.m_lStartChan = m_lStartChan; Dlg.DoModal(); } void CMatDecCFG::OnButcolumnset() { // TODO: Add your control notification handler code here CMatColumn Dlg; Dlg.m_iChannelnumber = m_iChannelnumber; Dlg.m_lServerID = m_lServerID; Dlg.m_lStartChan = m_lStartChan; Dlg.DoModal(); } void CMatDecCFG::OnButmanplay() { // TODO: Add your control notification handler code here CMatManuLink Dlg; Dlg.m_iChannelnumber = m_iChannelnumber; Dlg.m_lServerID = m_lServerID; Dlg.m_lStartChan = m_lStartChan; Dlg.DoModal(); } void CMatDecCFG::OnButrowset() { // TODO: Add your control notification handler code here CMatRow Dlg; Dlg.m_iChannelnumber = m_iChannelnumber; Dlg.m_lServerID = m_lServerID; Dlg.m_lStartChan = m_lStartChan; Dlg.DoModal(); } void CMatDecCFG::OnButtransset() { // TODO: Add your control notification handler code here CMatTrans Dlg; Dlg.m_iChannelnumber = m_iChannelnumber; Dlg.m_lServerID = m_lServerID; Dlg.m_lStartChan = m_lStartChan; Dlg.DoModal(); } BOOL CMatDecCFG::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here CRect rc(0, 0, 0, 0); GetParent()->GetClientRect(&rc); ((CTabCtrl*)GetParent())->AdjustRect(FALSE, &rc); MoveWindow(&rc); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CMatDecCFG::OnDispchancfg() { // TODO: Add your control notification handler code here CMatDispChan Dlg; Dlg.m_iChannelnumber = m_iChannelnumber; Dlg.m_lServerID = m_lServerID; Dlg.m_lStartChan = m_lStartChan; Dlg.DoModal(); } void CMatDecCFG::OnButdynamictest() { // TODO: Add your control notification handler code here CMatDynamicTest mdt; mdt.m_lServerID = m_lServerID; mdt.m_lStartChan = m_lStartChan; mdt.m_iChannelnumber = m_iChannelnumber; mdt.DoModal(); } void CMatDecCFG::OnButcyclink() { // TODO: Add your control notification handler code here CMatCycLink mcl; mcl.m_lServerID = m_lServerID; mcl.m_lStartChan = m_lStartChan; mcl.m_iChannelnumber = m_iChannelnumber; mcl.DoModal(); } void CMatDecCFG::OnButremoteplayback() { // TODO: Add your control notification handler code here CMatPlayBack pl; pl.m_lServerID = m_lServerID; pl.m_iChannelNumber = m_iChannelnumber; pl.m_lStartChan = m_lStartChan; pl.DoModal(); } void CMatDecCFG::OnButpassivemode() { // TODO: Add your control notification handler code here CMatPassiveMode MPM; MPM.m_lServerID = m_lServerID; MPM.m_iChannelnumber = m_iChannelnumber; MPM.m_lStartChan = m_lStartChan; MPM.DoModal(); }