pavementdetectdoc.h

来自「vc++ study」· C头文件 代码 · 共 77 行

H
77
字号
// PavementDetectDoc.h : interface of the CPavementDetectDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_PAVEMENTDETECTDOC_H__0A289D31_FD02_444A_8322_7058F9EC8DFA__INCLUDED_)
#define AFX_PAVEMENTDETECTDOC_H__0A289D31_FD02_444A_8322_7058F9EC8DFA__INCLUDED_

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

#include "dibapi.h"


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

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

// Implementation
public:
	void ReplaceHDIB(HDIB hDIB);
	void InitDIBData();
	virtual ~CPavementDetectDoc();

    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(CPavementDetectDoc)
	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_PAVEMENTDETECTDOC_H__0A289D31_FD02_444A_8322_7058F9EC8DFA__INCLUDED_)

⌨️ 快捷键说明

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