|
-
October 23rd, 1999, 12:01 AM
#1
OPENFILENAME lpstrFilter
What is the correct syntax for the lpstrFilter display strings and filter patterns when using multiple display strings and multiple filter patterns.
example:
CString str = "PS Font files (*.pfm;*.pfb)| Windows Font files (*.fon;*.ttf)|All files (*.*)||;
-
October 23rd, 1999, 07:39 AM
#2
Re: OPENFILENAME lpstrFilter
For OPENFILENAME, the string must be terminated by '\0's and not '|'. Using '|' is a CFileDialog only thing (it converts all the '|'s to '\0');
So a filter would be "Text Files\0*.txt\0All Files\0*.*\0\0"
-
October 23rd, 1999, 06:21 PM
#3
Re: OPENFILENAME lpstrFilter
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
|