doc.h

来自「在MFC应用程序中根据自己的选择显示一个JPG图形文件」· C头文件 代码 · 共 29 行

H
29
字号
////////////////////////////////////////////////////////////////
// MSDN Magazine -- October 2001
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Compiles with Visual C++ 6.0 for Windows 98 and probably Windows 2000 too.
// Set tabsize = 3 in your editor.
//
#include "Picture.h"

/////////////////
// Typical MFC doc class. Holds the picture in CPicture.
//
class CPictureDoc : public CDocument {
public:
	virtual ~CPictureDoc();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnNewDocument();

	CPicture* GetPicture() {
		return &m_pict;
	}

protected:
	CPicture	m_pict; // the picture
	CPictureDoc();
	DECLARE_DYNCREATE(CPictureDoc)
	DECLARE_MESSAGE_MAP()
};

⌨️ 快捷键说明

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