/*****************************************************************************
* Copyright (c) 2000 Digi International Inc., All Rights Reserved
* 
* This software contains proprietary and confidential information of Digi
* International Inc.  By accepting transfer of this copy, Recipient agrees
* to retain this software in confidence, to prevent disclosure to others,
* and to make no use of this software other than that for which it was
* delivered.  This is an unpublished copyrighted work of Digi International
* Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly
* prohibited.
* 
* Restricted Rights Legend
*
* Use, duplication, or disclosure by the Government is subject to
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in
* Technical Data and Computer Software clause at DFARS 252.227-7031 or
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -
* Restricted Rights at 48 CFR 52.227-19, as applicable.
*
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
*
*****************************************************************************/

// PropPgSignals.cpp : implementation file
//

#include "stdafx.h"
#include "digidbp.h"
#include "PropPgSignals.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPropPgSignals property page

IMPLEMENT_DYNCREATE(CPropPgSignals, CPropertyPage)

CPropPgSignals::CPropPgSignals() : CPropertyPage(CPropPgSignals::IDD)
{
	//{{AFX_DATA_INIT(CPropPgSignals)
	m_nAniSig = 0;
	m_nAswrSig = 0;
	m_nBusySig = 0;
	m_nEndDNIS = 0;
	//}}AFX_DATA_INIT
}

CPropPgSignals::~CPropPgSignals()
{
}

void CPropPgSignals::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPropPgSignals)
	DDX_Text(pDX, IDC_EDIT_AniSig, m_nAniSig);
	DDV_MinMaxUInt(pDX, m_nAniSig, 16, 31);
	DDX_Text(pDX, IDC_EDIT_AswrSig, m_nAswrSig);
	DDV_MinMaxUInt(pDX, m_nAswrSig, 16, 31);
	DDX_Text(pDX, IDC_EDIT_BusySig, m_nBusySig);
	DDV_MinMaxUInt(pDX, m_nBusySig, 16, 31);
	DDX_Text(pDX, IDC_EDIT_EndDNIS, m_nEndDNIS);
	DDV_MinMaxUInt(pDX, m_nEndDNIS, 16, 31);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPropPgSignals, CPropertyPage)
	//{{AFX_MSG_MAP(CPropPgSignals)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPropPgSignals message handlers

BOOL CPropPgSignals::OnInitDialog()
{
	CPropertyPage::OnInitDialog();

	UpdateData(FALSE); // Send variable data to the controls
		
	return TRUE;
}
