|
-
April 15th, 1999, 06:42 PM
#1
Open files of different types
In my application, when the user selects file "open" the standard file dialog box is displayed. How do I add to the list of file types (three character extensions). How would I then distinguish the files. Should I check the last three characters in LPCTSTR lpszPathName which is passed to my OnOpenDocument routine. Is there an example of this on codeguru.
Thankyou
Don
-
April 16th, 1999, 05:50 AM
#2
Re: Open files of different types
Goto your resources. In string table there is an indificator IDR_MAINFRAME in this string your file types are described - change it. For understanding of format look at CFileDialog constructor at help.
WBR Oak
-
April 16th, 1999, 06:52 AM
#3
Re: Open files of different types
Look at the docs for the CDocTemplate constructor and CDocTemplate::GetDocString.
The string used sits in the string resource table with the same resource ID as is passed to the CDocTemplate constructor.
Dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|