Click here to Skip to main content
15,891,828 members
Articles / Desktop Programming / MFC

Opening multipe documents of several types at once

Rate me:
Please Sign up or sign in to vote.
4.12/5 (9 votes)
15 May 2004CPOL2 min read 64K   1.3K   21  
This class provides an open file dialog that shows multiple file types at once, and allows selecting multiple files at once.
// DocManager2DemoDoc.h : interface of the CHappyDoc class
//


#pragma once

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

// Attributes
public:

// Operations
public:

// Overrides
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
public:
	virtual ~CHappyDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Mexico Mexico
@Work : Doing UML modelling for food
@Home : Still coding for fun!

Comments and Discussions