// CommonParamsPage.cpp : implementation file
//

#include "stdafx.h"
#include "smc.h"
#include "CommonParamsPage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCommonParamsPage property page

IMPLEMENT_DYNCREATE(CCommonParamsPage, CPropertyPage)

CCommonParamsPage::CCommonParamsPage() : CPropertyPage(CCommonParamsPage::IDD, IDS_COMMON_PARAMS_CAPTION)
{
	//{{AFX_DATA_INIT(CCommonParamsPage)
	m_nStartLine = -1;
	m_nMinLen = 0;
	m_strCommandChar = _T("");
	m_strCommandDelimiter = _T("");
	m_nHistorySize = 0;
	m_bDisplayInput = FALSE;
	m_bClearInput = FALSE;
	m_bConnectBeep = FALSE;
	m_bAutoReconnect = FALSE;
	m_bSplitOnBackscroll = FALSE;
	m_nTrigDelay = 0;
	//}}AFX_DATA_INIT
}

CCommonParamsPage::~CCommonParamsPage()
{
}

void CCommonParamsPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCommonParamsPage)
	DDX_Control(pDX, IDC_COMMAND_DELIMITER, m_cCommandDelimiter);
	DDX_Control(pDX, IDC_COMMAND_CHAR, m_cCommandChar);
	DDX_Radio(pDX, IDC_START_LINE, m_nStartLine);
	DDX_Text(pDX, IDC_MIN_LEN, m_nMinLen);
	DDX_Text(pDX, IDC_COMMAND_CHAR, m_strCommandChar);
	DDX_Text(pDX, IDC_COMMAND_DELIMITER, m_strCommandDelimiter);
	DDX_Text(pDX, IDC_HISTORY_SIZE, m_nHistorySize);
	DDV_MinMaxUInt(pDX, m_nHistorySize, 1, 500);
	DDX_Check(pDX, IDC_DISPLAY_INPUT, m_bDisplayInput);
	DDX_Check(pDX, IDC_CLEAR_INPUT, m_bClearInput);
	DDX_Check(pDX, IDC_CONNECT_BEEP, m_bConnectBeep);
	DDX_Check(pDX, IDC_AUTO_RECONNECT, m_bAutoReconnect);
	DDX_Check(pDX, IDC_SPLIT_ONBACKSCROLL, m_bSplitOnBackscroll);
	DDX_Text(pDX, IDC_TRIG_DELAY, m_nTrigDelay);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCommonParamsPage, CPropertyPage)
	//{{AFX_MSG_MAP(CCommonParamsPage)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCommonParamsPage message handlers

