// PRSettingDlg.cpp : implementation file
//

#include "stdafx.h"
#include "DVP2420Sample.h"
#include "PRSettingDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPRSettingDlg dialog


CPRSettingDlg::CPRSettingDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CPRSettingDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPRSettingDlg)
	m_bDisableAudio = FALSE;
	//}}AFX_DATA_INIT
}


void CPRSettingDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPRSettingDlg)
	DDX_CBIndex(pDX, IDC_SIGNAL_COMBO, m_nSignalType);
	DDX_CBIndex(pDX, IDC_VIDEOSIZE_COMBO, m_nVideoSize);
	DDX_Check(pDX, IDC_DISABLEAUDIO_CHK, m_bDisableAudio);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPRSettingDlg, CDialog)
	//{{AFX_MSG_MAP(CPRSettingDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPRSettingDlg message handlers

BOOL CPRSettingDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	((CComboBox *)GetDlgItem(IDC_SIGNAL_COMBO))->SetCurSel(1);
	((CComboBox *)GetDlgItem(IDC_VIDEOSIZE_COMBO))->SetCurSel(2);
	((CButton*)GetDlgItem(IDC_DISABLEAUDIO_CHK))->SetCheck(FALSE);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
