Click to See Complete Forum and Search --> : Open files of different types
Don Janik
April 15th, 1999, 06:42 PM
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
Oak
April 16th, 1999, 05:50 AM
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
Dave Lorde
April 16th, 1999, 06:52 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.