⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setupgeneraldlg.cpp

📁 VIS H.323 Library V2.1 Release
💻 CPP
字号:
/*
  VIS H.323 Video Conference System
      --Sample for VIS H.323 DLL Library 2.1 Release

  For more information,visit our homepage 
  
    [http://www.115studio.com]

  or mail to us for tech support and bug report

    [support@115studio.com]

  2000-2004 115Studio
  
  2004-04-05
*/
// SetupGeneralDlg.cpp : implementation file
//

#include "stdafx.h"
#include "visconf.h"
#include "SetupGeneralDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetupGeneralDlg dialog


CSetupGeneralDlg::CSetupGeneralDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSetupGeneralDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetupGeneralDlg)
	m_MaxConn = 1;
	m_AliasName = _T("");
	m_UserName = _T("");
	m_AutoAnswer = FALSE;
	m_NoAnswerTimeout = 0;
	m_RefuseAllCall = FALSE;
	m_mode = -1;
	//}}AFX_DATA_INIT
}


void CSetupGeneralDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetupGeneralDlg)
	DDX_Control(pDX, IDC_USER_INPUT_MODE, m_userInputModes);
	DDX_Control(pDX, IDC_SPIN_TIMEOUT, m_spinTimeout);
	DDX_Control(pDX, IDC_SPIN_MAX_CONN, m_spinMaxConn);
	DDX_Text(pDX, IDC_MAX_CONN_COUNT, m_MaxConn);
	DDV_MinMaxDWord(pDX, m_MaxConn, 1, 10000);
	DDX_Text(pDX, IDC_ALIAS_NAME, m_AliasName);
	DDX_Text(pDX, IDC_USER_NAME, m_UserName);
	DDX_Check(pDX, IDC_AUTO_ANSWER, m_AutoAnswer);
	DDX_Text(pDX, IDC_NO_ANSWER_TIMEOUT, m_NoAnswerTimeout);
	DDV_MinMaxUInt(pDX, m_NoAnswerTimeout, 10, 3600);
	DDX_Check(pDX, IDC_REFUSE_ALL_CALL, m_RefuseAllCall);
	DDX_CBIndex(pDX, IDC_USER_INPUT_MODE, m_mode);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetupGeneralDlg, CDialog)
	//{{AFX_MSG_MAP(CSetupGeneralDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetupGeneralDlg message handlers


BOOL CSetupGeneralDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_spinMaxConn.SetRange(1,10000);
	m_spinTimeout.SetRange(10,3600);

	m_userInputModes.AddString("Q931");
	m_userInputModes.AddString("H245String");
	m_userInputModes.AddString("H245Signal");
	m_userInputModes.AddString("RFC2833");
	
	UpdateData(FALSE);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -