// TabWBDlg.cpp
//

#include "stdafx.h"
#include "sttrgdisplay.h"
#include "TabWBDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTabWBDlg
CTabWBDlg::CTabWBDlg(CWnd* pParent /*=NULL*/)
	: CTabChildBase(CTabWBDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTabWBDlg)
	//}}AFX_DATA_INIT
	m_szTabName = TEXT("White Balance");

	//ComboBoxCtrl
	m_ComboBoxCtrlCount = 2;
	m_pComboBoxCtrlID = new UINT[m_ComboBoxCtrlCount];
	m_pComboBoxCtrlID[0] = IDC_COMBO_WB_MODE;
	m_pComboBoxCtrlID[1] = IDC_COMBO_HUE_SATURATION_MODE;
	
	//SliderCtrl
	m_SliderCtrlCount = 10;
	m_pSliderCtrlID = new UINT[m_SliderCtrlCount];
	m_pSliderCtrlID[0] = IDC_SLIDER_WB_GAIN_R;
	m_pSliderCtrlID[1] = IDC_SLIDER_WB_GAIN_GR;
	m_pSliderCtrlID[2] = IDC_SLIDER_WB_GAIN_GB;
	m_pSliderCtrlID[3] = IDC_SLIDER_WB_GAIN_B;
	m_pSliderCtrlID[4] = IDC_SLIDER_HUE;
	m_pSliderCtrlID[5] = IDC_SLIDER_SATURATION;
	m_pSliderCtrlID[6] = IDC_SLIDER_CHROMA_SUPPRESSION_START_LEVEL;
	m_pSliderCtrlID[7] = IDC_SLIDER_CHROMA_SUPPRESSION_SUPPRESSION_LEVEL;
	m_pSliderCtrlID[8] = IDC_SLIDER_LOW_CHROMA_SUPPRESSION_START_LEVEL;
	m_pSliderCtrlID[9] = IDC_SLIDER_LOW_CHROMA_SUPPRESSION_SUPPRESSION_LEVEL;

	//StaticCtrl
	m_StaticCtrlCount = 10;
	m_pStaticCtrlID = new UINT[m_StaticCtrlCount];
	m_pStaticCtrlID[0] = IDC_STATIC_WB_GAIN_R;
	m_pStaticCtrlID[1] = IDC_STATIC_WB_GAIN_GR;
	m_pStaticCtrlID[2] = IDC_STATIC_WB_GAIN_GB;
	m_pStaticCtrlID[3] = IDC_STATIC_WB_GAIN_B;
	m_pStaticCtrlID[4] = IDC_STATIC_HUE;
	m_pStaticCtrlID[5] = IDC_STATIC_SATURATION;
	m_pStaticCtrlID[6] = 0;
	m_pStaticCtrlID[7] = 0;
	m_pStaticCtrlID[8] = 0;
	m_pStaticCtrlID[9] = 0;

	//EditCtrl
	m_EditCtrlCount = 10;
	m_pEditCtrlID = new UINT[m_EditCtrlCount];
	m_pEditCtrlID[0] = IDC_EDIT_WB_GAIN_R;
	m_pEditCtrlID[1] = IDC_EDIT_WB_GAIN_GR;
	m_pEditCtrlID[2] = IDC_EDIT_WB_GAIN_GB;
	m_pEditCtrlID[3] = IDC_EDIT_WB_GAIN_B;
	m_pEditCtrlID[4] = IDC_EDIT_HUE;
	m_pEditCtrlID[5] = IDC_EDIT_SATURATION;
	m_pEditCtrlID[6] = IDC_EDIT_CHROMA_SUPPRESSION_START_LEVEL;
	m_pEditCtrlID[7] = IDC_EDIT_CHROMA_SUPPRESSION_SUPPRESSION_LEVEL;
	m_pEditCtrlID[8] = IDC_EDIT_LOW_CHROMA_SUPPRESSION_START_LEVEL;
	m_pEditCtrlID[9] = IDC_EDIT_LOW_CHROMA_SUPPRESSION_SUPPRESSION_LEVEL;
}

void CTabWBDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CTabWBDlg)
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CTabWBDlg, CTabChildBase)
	//{{AFX_MSG_MAP(CTabWBDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTabWBDlg

