www.pudn.com > vcframe.rar > RightDoc.h


#if !defined(AFX_RIGHTDOC_H__0C0F6C53_8428_45FD_B256_828F9D9D3FE6__INCLUDED_) 
#define AFX_RIGHTDOC_H__0C0F6C53_8428_45FD_B256_828F9D9D3FE6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// RightDoc.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CRightDoc document 
 
#include "dibapi.h" 
class CRightDoc : public CDocument 
{ 
protected: 
	CRightDoc();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CRightDoc) 
 
// Attributes 
public: 
	HDIB GetHDIB() const 
		{ return m_hDIB; } 
	CPalette* GetDocPalette() const 
		{ return m_palDIB; } 
 
// Operations 
public:   
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CRightDoc) 
	public: 
	virtual void Serialize(CArchive& ar);   // overridden for document i/o 
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 
	protected: 
	virtual BOOL OnNewDocument(); 
    
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CRightDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
	void InitDIBData(); 
#endif 
 
	// Generated message map functions 
protected: 
HDIB m_hDIB; 
	CPalette* m_palDIB; 
	CSize m_sizeDoc; 
 
	//{{AFX_MSG(CRightDoc) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_RIGHTDOC_H__0C0F6C53_8428_45FD_B256_828F9D9D3FE6__INCLUDED_)