www.pudn.com > VC20070605zghLPR.rar > PlateRecoDoc.h


// PlateRecoDoc.h : interface of the CPlateRecoDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_PLATERECODOC_H__327B016F_77AC_11D5_8CF0_DD45B412E738__INCLUDED_) 
#define AFX_PLATERECODOC_H__327B016F_77AC_11D5_8CF0_DD45B412E738__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Dibapi.h" 
 
class CPlateRecoDoc : public CDocument 
{ 
protected: // create from serialization only 
	CPlateRecoDoc(); 
	DECLARE_DYNCREATE(CPlateRecoDoc) 
 
// Attributes 
public: 
	HDIB GetHDIB() const 
		{ return m_hDIB; } 
	CPalette* GetDocPalette() const 
		{ return m_palDIB; } 
	CSize GetDocSize() const 
		{ return m_sizeDoc; } 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPlateRecoDoc) 
	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 ~CPlateRecoDoc(); 
	int m_nColorIndex; 
	void ReplaceHDIB(HDIB hDIB); 
	void InitDIBData(); 
	COLORREF m_refColorBKG;		// ±³¾°É« 
 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
	HDIB m_hDIB; 
	CPalette* m_palDIB; 
	CSize m_sizeDoc; 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CPlateRecoDoc) 
	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_PLATERECODOC_H__327B016F_77AC_11D5_8CF0_DD45B412E738__INCLUDED_)