www.pudn.com > zhifangtu.rar > DipDoc.h


// DipDoc.h : interface of the CDipDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DIPDOC_H__4DFF8BF7_0859_4F4E_A1EC_F7DEFCDDC944__INCLUDED_) 
#define AFX_DIPDOC_H__4DFF8BF7_0859_4F4E_A1EC_F7DEFCDDC944__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CDipDoc : public CDocument 
{ 
protected: // create from serialization only 
	CDipDoc(); 
	DECLARE_DYNCREATE(CDipDoc) 
 
// Attributes 
public: 
	BOOL m_bImageLoaded; 
    CImageObject *m_pImageObject; 
// Operations 
public: 
	BOOL m_nZhifang; 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDipDoc) 
	public: 
	virtual void Serialize(CArchive& ar); 
 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	BOOL LoadImageToDocument(); 
		int *CreateHistogram( int, int, int, int, unsigned char*,RGBQUAD*,int, CImageObject*pDibObject=NULL); 
	int *GetHistogram(int nX1 = -1,int nY1 = -1,int nX2 = -1,int nY2 = -1,CImageObject*pDibObject = NULL); 
	virtual ~CDipDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CDipDoc) 
	afx_msg void OnFileOpen(); 
	afx_msg void OnFileSave(); 
	afx_msg void OnFileNew(); 
	afx_msg void OnBmpinfo(); 
	afx_msg BOOL OnZhifangtu(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DIPDOC_H__4DFF8BF7_0859_4F4E_A1EC_F7DEFCDDC944__INCLUDED_)