www.pudn.com > YangyongDIP.rar > YangyongDIPDoc.h


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