Displaying multiple file extensions on Open Dialog Box 
Author Message
 Displaying multiple file extensions on Open Dialog Box

I have an MDI program that handles several types of image files. When
opened each type of image file is converted to a DIB for viewing. I do
not allow for New File, I only allow for opening an existing file. (they
are created elsewhere.) I want to be able to
display multiple file extensions on the Open File dialog box. I have
tried creating multiple document templates via the AddDocTemplate call,
after creating a new multi doc template. I use unique strings to
identify the file type and extension. However, the Open File dialog box
only displays files with the extension specified by the
first document template (first in the series of calls to
AddDocTemplate). This should be fairly simple to accomplish but I can't
get it to work. Any help, including examples,  would be appreciated.  

William J. Gibbons



Sat, 03 Jun 2000 03:00:00 GMT  
 Displaying multiple file extensions on Open Dialog Box

Try overriding CWinApp::OnFileOpen()

Pierre V.



Quote:
> I have an MDI program that handles several types of image files. When
> opened each type of image file is converted to a DIB for viewing. I do
> not allow for New File, I only allow for opening an existing file. (they
> are created elsewhere.) I want to be able to
> display multiple file extensions on the Open File dialog box. I have
> tried creating multiple document templates via the AddDocTemplate call,
> after creating a new multi doc template. I use unique strings to
> identify the file type and extension. However, the Open File dialog box
> only displays files with the extension specified by the
> first document template (first in the series of calls to
> AddDocTemplate). This should be fairly simple to accomplish but I can't
> get it to work. Any help, including examples,  would be appreciated.  

> William J. Gibbons



Sun, 04 Jun 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. changing the default file extension in the file open dialog box

2. Display of File Open Dialog Box in Win32 Application in VC++ 6.0

3. Display of File Open Dialog Box in Win32 App in VC 6.0

4. File extension filtering for the file dialog presented for file opening

5. Displaying Dialog box in Extension DLL which contains Custom Control

6. File Open and multiple extensions?

7. open multiple file extensions in MDI??

8. HOW TO Filter Files Without File Extention in Open File Dialog Box

9. Common Open Dialog not displaying a dialog when file doesn't exist

10. Selecting multiple files in Win File->Open dialog

11. Disabling editing of list box items in the file open dialog box

12. Flicker When Displaying Multiple Modeless Dialog Boxes

 

 
Powered by phpBB® Forum Software