www.pudn.com > CDX.rar > GradientTestView.h


// GradientTestView.h : interface of the CGradientTestView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_GRADIENTTESTVIEW_H__B08AC28D_D0A2_4BEB_9319_2E61D70852D9__INCLUDED_) 
#define AFX_GRADIENTTESTVIEW_H__B08AC28D_D0A2_4BEB_9319_2E61D70852D9__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "GradientRender.h" 
 
 
class CGradientTestView : public CView 
{ 
protected: // create from serialization only 
	CGradientTestView(); 
	DECLARE_DYNCREATE(CGradientTestView) 
 
// Attributes 
public: 
	CGradientTestDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CGradientTestView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void DrawGradients(); 
	CBitmap* m_OldMemoryBitmap; 
	CBitmap m_MemoryBitmap; 
	CDC m_MemDC; 
	CGradientRender m_GradientRender; 
	virtual ~CGradientTestView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CGradientTestView) 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in GradientTestView.cpp 
inline CGradientTestDoc* CGradientTestView::GetDocument() 
   { return (CGradientTestDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_GRADIENTTESTVIEW_H__B08AC28D_D0A2_4BEB_9319_2E61D70852D9__INCLUDED_)