changing the default file extension in the file open dialog box 
Author Message
 changing the default file extension in the file open dialog box

I want to change the default extension for the file open dialog box and
would really appreciate any help.
Thanks


Wed, 23 Jan 2002 03:00:00 GMT  
 changing the default file extension in the file open dialog box
Scott!

If the extension you want to change is in the framework, check the
IDR_MAINFRAME string in your string resources. It might look something like:

Test\n\nTest\n\n\nTest.Document\nTest Document

Change it to something like:

Test\n\nTest\nTest Files (*.xxx)\n.XXX\nTest.Document\nTest Document

where XXX is your desired extension.
If it is the extension of a file dialog you pop up yourself, you put the
extension like:

CFileDialog dlgFile(TRUE, "XXX","*.XXX",OFN_HIDEREADONLY |
OFN_OVERWRITEPROMPT,"Test Files (*.xxx)|*.xxx||");

Johan Rosengren
Responsable Informatique
PACTA S.A.


Quote:
> I want to change the default extension for the file open dialog box and
> would really appreciate any help.
> Thanks



Thu, 24 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

2. Displaying multiple file extensions on Open Dialog Box

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

4. Change file index filter of the standard file open/save dialog

5. Changing file types in File open dialog

6. Changing the default file extension

7. Changing the Default File Extension

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

9. Open new file - not change default directory?

10. changing default file-open-mask

11. hpp extension in File Open Dialog

12. File Extensions and Open and Save Dialogs

 

 
Powered by phpBB® Forum Software