Click here to Skip to main content
15,886,799 members
Articles / Desktop Programming / MFC

Opening / Saving multiple types of documents in MFC MDI applications

Rate me:
Please Sign up or sign in to vote.
4.88/5 (12 votes)
24 Nov 2004CPOL2 min read 86.2K   2K   36  
A simple Visual C++ 6.0 multiple document (MDI) project that allows opening / saving multiple types of documents.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by MYFIRSTPROJECT.RC
//

/*

	author:			Babak Taati ( http://qlink.queensu.ca/~3bt1/ )
	Download link:	http://qlink.queensu.ca/~3bt1/Miscellaneous/Downloads.htm	

	Description:	This is a simple project that allows opening / saving multiple types of documents
  
	References: 	1. MFC Document/View documentation and enhancements, by Roger Allen on CodeProject.com
					2. How to support two file extensions per MFC document type, Micorosft support document Article ID 141921
					3. DocMgrEx.exe Assoc Multiple File Extension w/2 Doc Tyle, Micorosft support document Article ID 198538
					4. Selecting multiple files in File Open dialog, by Kaus Gutter on CodeGuru.com
					5. Opening multiple documents of several types at once, by Ernesto Perales Soto on CodeProject.com

	Date:			Nov 2004

*/

#define IDD_ABOUTBOX				100
#define IDR_MAINFRAME				128
#define IDR_FIRSTTYPE				129	
#define IDR_FIRST2TYPE				130	//Babak
#define IDR_FIRST3TYPE				131	//Babak

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS			1
#define _APS_NEXT_RESOURCE_VALUE	130
#define _APS_NEXT_CONTROL_VALUE		1000
#define _APS_NEXT_SYMED_VALUE		101
#define _APS_NEXT_COMMAND_VALUE		32771
#endif
#endif

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
Toronto Rehabilitation Institute - UHN
Canada Canada
Babak Taati
http://www.cs.toronto.edu/~taati/

Comments and Discussions