// ConfigCommonDlg.cpp : 구현 파일입니다.
//

#include "stdafx.h"
#include "ConsoleApp.h"
#include "ConfigCommonDlg.h"


// CConfigCommonDlg 대화 상자입니다.

IMPLEMENT_DYNAMIC(CConfigCommonDlg, CDialog)
CConfigCommonDlg::CConfigCommonDlg(CWnd* pParent /*=NULL*/)
	: CConfigSubDlg(CConfigCommonDlg::IDD, pParent)
	, m_nAfterExec(0)
	, m_bAutoConnect(FALSE)
	, m_bSavePassword(FALSE)
	, m_bLogDir(FALSE)
	, m_bLogUpload(FALSE)
{
}

CConfigCommonDlg::~CConfigCommonDlg()
{
}

void CConfigCommonDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_CBO_AFTEREXEC,    m_cboAfterExec);
	DDX_Check(pDX,   IDC_CHK_AUTOCONNECT,  m_bAutoConnect);
	DDX_Check(pDX,   IDC_CHK_SAVEPASSWORD, m_bSavePassword);
	DDX_Check(pDX, IDC_LOG_DIR_CHK, m_bLogDir);
	DDX_Check(pDX, IDC_LOG_UPLOAD_CHK, m_bLogUpload);
}


BEGIN_MESSAGE_MAP(CConfigCommonDlg, CDialog)
	ON_CBN_SELCHANGE(IDC_CBO_AFTEREXEC, OnCboAfterexecSelchange)
END_MESSAGE_MAP()


// CConfigCommonDlg 메시지 처리기입니다.

BOOL CConfigCommonDlg::OnInitDialog()
{
	CConfigSubDlg::OnInitDialog();

	m_cboAfterExec.SetCurSel(m_nAfterExec);

	return TRUE;  // return TRUE unless you set the focus to a control
	// 예외: OCX 속성 페이지는 FALSE를 반환해야 합니다.
}

void CConfigCommonDlg::OnCboAfterexecSelchange()
{
	m_nAfterExec = m_cboAfterExec.GetCurSel();
}
