// MultiPlay.cpp : implementation file // #include "stdafx.h" //#include "RealPlayAndPTZControl.h" #include "MultiPlay.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMultiPlay dialog CMultiPlay::CMultiPlay(CWnd* pParent /*=NULL*/) : CDialog(CMultiPlay::IDD, pParent) { //{{AFX_DATA_INIT(CMultiPlay) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT m_nMultiPlay = 0; m_nChannel = 0; m_nChannelCount = 0; } void CMultiPlay::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMultiPlay) DDX_Control(pDX, IDC_COMBO_BEGINCHANNEL, m_comboChannel); DDX_Control(pDX, IDC_COMBO_MULTI, m_comboMulti); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CMultiPlay, CDialog) //{{AFX_MSG_MAP(CMultiPlay) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMultiPlay message handlers void CMultiPlay::OnOK() { // TODO: Add extra validation here int nIndex = m_comboMulti.GetCurSel(); if(CB_ERR != nIndex) { m_nMultiPlay = m_comboMulti.GetItemData(nIndex); } nIndex = m_comboChannel.GetCurSel(); if(CB_ERR != nIndex) { m_nChannel = m_comboChannel.GetItemData(nIndex); } CDialog::OnOK(); } //Set dropdown menu void CMultiPlay::SetMultiPlayDlgInfo(int nChannelCount) { m_nChannelCount = nChannelCount; } BOOL CMultiPlay::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this); // TODO: Add extra initialization here //Channel dropdown menu m_comboChannel.ResetContent(); int i = 0; int nIndex = 0; for(i=0;i