www.pudn.com > 2007112823521925.rar > COLORPAGE.H


#if !defined(AFX_COLORPAGE_H__DA975887_21D5_11D5_9B34_0050FC217301__INCLUDED_) 
#define AFX_COLORPAGE_H__DA975887_21D5_11D5_9B34_0050FC217301__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ColorPage.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CColorPage dialog 
 
class CColorPage : public CPropertyPage 
{ 
	DECLARE_DYNCREATE(CColorPage) 
 
// Construction 
public: 
	CColorPage(); 
	~CColorPage(); 
	int            m_nChannel; 
	CString        m_sSection; 
	void           SetChannel(int nChannel); 
 
// Dialog Data 
	//{{AFX_DATA(CColorPage) 
	enum { IDD = IDD_COLOR_PAGE }; 
	CEdit	m_cSaturationEdit; 
	CSliderCtrl	m_cSaturation; 
	CEdit	m_cHueEdit; 
	CSliderCtrl	m_cHue; 
	CEdit	m_cContrastEdit; 
	CSliderCtrl	m_cContrast; 
	CEdit	m_cBrightEdit; 
	CSliderCtrl	m_cBright; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generate virtual function overrides 
	//{{AFX_VIRTUAL(CColorPage) 
	public: 
	virtual void OnOK(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	// Generated message map functions 
	//{{AFX_MSG(CColorPage) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnDefault(); 
	afx_msg void OnReleasedcaptureBright(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnCustomdrawBright(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnCustomdrawContrast(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnCustomdrawSaturation(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnCustomdrawHue(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnUpdateBrightEdit(); 
	afx_msg void OnUpdateContrastEdit(); 
	afx_msg void OnUpdateHueEdit(); 
	afx_msg void OnUpdateSaturationEdit(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_COLORPAGE_H__DA975887_21D5_11D5_9B34_0050FC217301__INCLUDED_)