www.pudn.com > ColorDlg-v1.1.rar > ColorDlgView.h


// ColorDlgView.h : interface of the CColorDlgView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_COLORDLGVIEW_H__97F24D43_76E7_4FA6_8842_A4B7B3A1B3A3__INCLUDED_) 
#define AFX_COLORDLGVIEW_H__97F24D43_76E7_4FA6_8842_A4B7B3A1B3A3__INCLUDED_ 
 
#include "ColorSetDlg.h"	// Added by ClassView 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CColorDlgView : public CView 
{ 
protected: // create from serialization only 
	CColorDlgView(); 
	DECLARE_DYNCREATE(CColorDlgView) 
 
// Attributes 
public: 
	CColorDlgDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CColorDlgView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	int tm; 
	virtual ~CColorDlgView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CColorDlgView) 
	afx_msg void OnColor(); 
	afx_msg void OnGcolor(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	COLORREF m_clr1,m_clr2,m_clr3; 
	CColorSetDlg csdlg; 
	CColorDialog gcdlg; 
}; 
 
#ifndef _DEBUG  // debug version in ColorDlgView.cpp 
inline CColorDlgDoc* CColorDlgView::GetDocument() 
   { return (CColorDlgDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_COLORDLGVIEW_H__97F24D43_76E7_4FA6_8842_A4B7B3A1B3A3__INCLUDED_)