Article ID: 105497
Article Last Modified on 11/21/2006
119591 How to Obtain Microsoft Support Files from Online Services
m_ofn.Flags &= ~OFN_EXPLORER;before calling DoModal() on the CFileDialog object. It is likely, however, that this behavior will change under future versions of Windows and the old style of common file dialogs will go away. The best way to search for a folder instead of a specific file is to use the new ::SHBrowseForFolder() SDK function.
CMyFileDlg cfdlg(FALSE, NULL, NULL, OFN_SHOWHELP | OFN_HIDEREADONLY |
OFN_OVERWRITEPROMPT | OFN_ENABLETEMPLATE, NULL,
m_pMainWnd);
cfdlg.m_ofn.hInstance = AfxGetInstanceHandle();
cfdlg.m_ofn.lpTemplateName = MAKEINTRESOURCE(FILEOPENORD);
if (IDOK==cfdlg.DoModal())
...OK processing...
else
...Error processing...
Additional query words: getopenfilename Dirpk commdlg dirpkr dirpick dirpicker dirpik
Keywords: kbhowto kbdownload kbcmndlgfileo kbsample kbfileio KB105497