mesman00
What's that...?
i'm using the CFileDialog class to create an open dialog box. here is my question. i wanna set the file filter types, but i am unsure how to do it. i know i need to use the m_ofn struct, and the lpstrFilter member flag. but i don't know how to initialize the flag so it displays properly in the combo box of the open dialog box. i want to use the flag to filter out the following two file types:
structured report files with the .dcm extension
text files with the .txt extension
these two things should be the two options in the combo box. so, how should i initialize the lpstrFilter flag. the name of my CFileDialog object is m_OpenDialog. thus
m_OpenDialog->m_ofn.lpstrFiler = ?
what should be in place of the ?
structured report files with the .dcm extension
text files with the .txt extension
these two things should be the two options in the combo box. so, how should i initialize the lpstrFilter flag. the name of my CFileDialog object is m_OpenDialog. thus
m_OpenDialog->m_ofn.lpstrFiler = ?
what should be in place of the ?