Click here to Skip to main content
15,896,063 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 64.1K   1.3K   21  
This class provides an open file dialog that shows multiple file types at once, and allows selecting multiple files at once.
// DocManager2DemoView.cpp : implementation of the CDocManager2DemoView class
//

#include "stdafx.h"
#include "DocManager2Demo.h"

#include "DocManager2DemoDoc.h"
#include "DocManager2DemoView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CDocManager2DemoView

IMPLEMENT_DYNCREATE(CDocManager2DemoView, CView)

BEGIN_MESSAGE_MAP(CDocManager2DemoView, CView)
END_MESSAGE_MAP()

// CDocManager2DemoView construction/destruction

CDocManager2DemoView::CDocManager2DemoView()
{
	// TODO: add construction code here

}

CDocManager2DemoView::~CDocManager2DemoView()
{
}

BOOL CDocManager2DemoView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

// CDocManager2DemoView drawing

void CDocManager2DemoView::OnDraw(CDC* /*pDC*/)
{
}


// CDocManager2DemoView diagnostics

#ifdef _DEBUG
void CDocManager2DemoView::AssertValid() const
{
	CView::AssertValid();
}

void CDocManager2DemoView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CDocument* CDocManager2DemoView::GetDocument() const // non-debug version is inline
{
	return m_pDocument;
}
#endif //_DEBUG


// CDocManager2DemoView message handlers

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