#if !defined(AFX_ENCOLORDIALOG_H__0C8EC4ED_8B90_4F81_96FC_085F8F36229D__INCLUDED_)
#define AFX_ENCOLORDIALOG_H__0C8EC4ED_8B90_4F81_96FC_085F8F36229D__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////

class IPreferences;

/////////////////////////////////////////////////////////////////////////////
// CEnColorDialog dialog

class CEnColorDialog : public CColorDialog
{
	DECLARE_DYNAMIC(CEnColorDialog)

public:
	CEnColorDialog(COLORREF clrInit = CLR_NONE, DWORD dwFlags = CC_FULLOPEN | CC_RGBINIT, CWnd* pParentWnd = NULL);
	~CEnColorDialog();

	int DoModal(IPreferences* pPrefs = NULL);
	void SetCurrentColor(COLORREF clr);

	void LoadPreferences(const IPreferences* pPrefs);
	void SavePreferences(IPreferences* pPrefs) const;

protected:
	//{{AFX_MSG(CEnColorDialog)
	//}}AFX_MSG
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	DECLARE_MESSAGE_MAP()

protected:
	BOOL HandleColorGridDblClk(CPoint point, UINT nGridID, int nNumRows);
};

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

#endif // !defined(AFX_ENCOLORDIALOG_H__0C8EC4ED_8B90_4F81_96FC_085F8F36229D__INCLUDED_)
