www.pudn.com > Snakes.rar > SnakesDoc.h


// SnakesDoc.h : interface of the CSnakesDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_SNAKESDOC_H__7BA1E2BD_C3C5_48D2_8248_8FED034AF82C__INCLUDED_) 
#define AFX_SNAKESDOC_H__7BA1E2BD_C3C5_48D2_8248_8FED034AF82C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "Bitmap_common\dibapi.h" 
 
class CSnakesDoc : public CDocument 
{ 
protected: // create from serialization only 
	CSnakesDoc(); 
	DECLARE_DYNCREATE(CSnakesDoc) 
 
// Attributes 
public: 
HDIB m_hDIB; 
	CPalette* m_palDIB; 
	CSize m_sizeDoc; 
	COLORREF m_refColorBKG;		// ±³¾°É« 
	 
public: 
	HDIB GetHDIB() const 
	{ return m_hDIB; } 
	CPalette* GetDocPalette() const 
	{ return m_palDIB; } 
	CSize GetDocSize() const 
	{ return m_sizeDoc; } 
	void InitDIBData(); 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSnakesDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CSnakesDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CSnakesDoc) 
		// NOTE - the ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code ! 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SNAKESDOC_H__7BA1E2BD_C3C5_48D2_8248_8FED034AF82C__INCLUDED_)