June 18th, 2006, 10:05 AM
[RESOLVED] MFC CFileDialog: Vista plans for Orcas?
As you probably know, Vista has a brand new common File Open/Save dialog (comdlg32.dll) with a different looking places bar, and search built-in, different toolbar etc.
MFC's CFileDialog calls GetOpenFileName/GetSaveFileName API. But on Vista, if you have specified a hook proc using OFN_ENABLEHOOK then Vista will not give you the new file open dialog. It gives you the Windows 2000/XP style file open dialog box. To get around this you can call IFileOpenDialog IFileSaveDialog COM APIs instead.
What are the plans for CFileDialog in Orcas so a user can 1) have the benefit of Vista look and feel, and 2) not have to change much code (i.e. it just works)
Ideally the Vista dev team will change this at the OS level so that the new style file open/save dialog can be forced using a flag even when a hook is specified (see this thread for more discussion - I'm really hoping they adopt this)
otherwise you'll have to rewrite to use IFileDialog APIs.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!