#if !defined(AFX_COLORPAGE2_H__CEF11377_7CBE_4D0A_BDF3_792C35B4AE5E__INCLUDED_)
#define AFX_COLORPAGE2_H__CEF11377_7CBE_4D0A_BDF3_792C35B4AE5E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorPage2.h : header file
//

#ifndef BCG_NO_COLOR

#include "PowerColorPicker.h"

class CBCGColorDialog;

/////////////////////////////////////////////////////////////////////////////
// CColorPage2 dialog

class CColorPage2 : public CPropertyPage
{
	DECLARE_DYNCREATE(CColorPage2)

// Construction
public:
	CColorPage2();
	CBCGColorDialog*	m_pDialog;

	void Setup (BYTE R, BYTE G, BYTE B);

protected:
// Dialog Data
	//{{AFX_DATA(CColorPage2)
	enum { IDD = IDD_BCGBARRES_COLORPAGE_TWO };
	CBCGColorPickerCtrl	m_wndLuminance;
	CBCGColorPickerCtrl	m_wndColorPicker;
	int		m_r;
	int		m_b;
	int		m_g;
	UINT	m_l;
	UINT	m_h;
	UINT	m_s;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CColorPage2)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CColorPage2)
	virtual BOOL OnInitDialog();
	afx_msg void OnRGBChanged();
	afx_msg void OnHLSChanged();
	afx_msg void OnLuminance();
	afx_msg void OnColour();
	afx_msg void OnDoubleClickedColor();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	BOOL	m_bIsReady;
	BOOL	m_bInUpdate;
};

#endif // BCG_NO_COLOR

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COLORPAGE2_H__CEF11377_7CBE_4D0A_BDF3_792C35B4AE5E__INCLUDED_)
