shiyudoc.h

来自「数字图像处理的灰度处理源代码.rar」· C头文件 代码 · 共 85 行

H
85
字号
// shiyuDoc.h : interface of the CShiyuDoc class
//
/////////////////////////////////////////////////////////////////////////////

#include "DIBAPI.h"
#if !defined(AFX_SHIYUDOC_H__DB918198_F7EE_4153_A662_2378399EFA9C__INCLUDED_)
#define AFX_SHIYUDOC_H__DB918198_F7EE_4153_A662_2378399EFA9C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CShiyuDoc : public CDocument
{
protected: // create from serialization only
	CShiyuDoc();
	DECLARE_DYNCREATE(CShiyuDoc)

// 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(CShiyuDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	virtual void DeleteContents();
	virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
	//}}AFX_VIRTUAL

// Implementation
public:
	void ReplaceHDIB(HDIB hDIB);
	void SetDib();
	void InitDIBData();
	COLORREF m_refColorBKG;
	int m_nColorIndex;
	HDIB m_hDIB;
	virtual ~CShiyuDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	CPalette* m_palDIB;
	CSize m_sizeDoc;
	//{{AFX_MSG(CShiyuDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHIYUDOC_H__DB918198_F7EE_4153_A662_2378399EFA9C__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?