Click here to Skip to main content
15,897,160 members
Articles / Desktop Programming / MFC

Create Thumbnail Extractor Objects for Your MFC Document Types

Rate me:
Please Sign up or sign in to vote.
4.94/5 (23 votes)
21 Nov 20025 min read 356.6K   4.3K   104  
An article on writing thumbnail shell extensions for your MFC document types
// $$Object$$Doc.h : interface of the C$$Object$$Doc class
//
class C$$Object$$Doc : public CDocument
{
protected: // create from serialization only
	C$$Object$$Doc();
	DECLARE_DYNCREATE(C$$Object$$Doc)


protected:
	CSize           m_sizeDoc;
public:
	virtual CSize GetDocSize() { return m_sizeDoc; }
	virtual void OnDraw(CDC* pDC);


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(C$$Object$$Doc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual void DeleteContents();
	//}}AFX_VIRTUAL

// Implementation
protected:

public:
	virtual ~C$$Object$$Doc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif


// Generated message map functions
protected:
	//{{AFX_MSG(C$$Object$$Doc)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Web Developer Forthnet
Greece Greece
Software developer and Microsoft Trainer, Athens, Greece (MCT, MCSD.net, MCSE 2003, MCDBA 2000,MCTS, MCITP, MCIPD).

Comments and Discussions