www.pudn.com > dbnn.rar > DBNNDoc.h, change:2004-01-03,size:1792b


// DBNNDoc.h : interface of the CDBNNDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DBNNDOC_H__51211005_0A5A_4DC7_AE48_23F196678232__INCLUDED_) 
#define AFX_DBNNDOC_H__51211005_0A5A_4DC7_AE48_23F196678232__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "dib.h" 
 
class CDBNNDoc : public CDocument 
{ 
protected: // create from serialization only 
	CDBNNDoc(); 
	DECLARE_DYNCREATE(CDBNNDoc) 
 
// 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(CDBNNDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void InitDIBData(); 
 
	CString m_strCurrentFile; 
	CDIB m_clsDIB; 
	HDIB m_hDIB; 
	CPoint m_ptPoint_I; 
	CPoint m_ptPoint_II; 
	 
	virtual ~CDBNNDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
	CPalette* m_palDIB; 
	CSize m_sizeDoc; 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CDBNNDoc) 
	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_DBNNDOC_H__51211005_0A5A_4DC7_AE48_23F196678232__INCLUDED_)