I have a menu and when i click Open, the system gives me only the *.icf. But now I want ot had *.lbl to my filter ( *.icf; *.lbl on the same line)
How can i do that ?
Thank you
Printable View
I have a menu and when i click Open, the system gives me only the *.icf. But now I want ot had *.lbl to my filter ( *.icf; *.lbl on the same line)
How can i do that ?
Thank you
Hi,
Just Use a CFileDialog object
CFileDialog dlg(TRUE or FALSE, "abc", "*.abc");
Please modify CWinApp::OnFileOpen()such as following:
{
CFileDialog dlg(TRUE,NULL,NULL,OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY,
_T("*.icf|*.icf|*.lbl|*.lbl|"),NULL);
if (dlg.DoModal()==IDOK)
{
OpenDocumentFile(dlg.GetPathName());
}
}