CFileDialog is an MFC class that gives interface to the “browse” windows for opening and saving a file or files. In Windows 7 you can see that there are significant differences in the appearance of the same compared to Windows XP. It is since the Windows Vista this change happened. Nice and neat of-course.

Default CFileDialog in Windows 7

CFileDialog as in Windows XP
I’m perfectly OK with the CFileDialog as in Win7, but my client wasn’t. I asked many of my gurus and couldn’t find a way out, but the very simple solution for this, I got as an answer to my stack overflow question. In the CFileDialog constructor, the last parameter, bVistaStyle will be TRUE by default. We will have to make it FALSE and you will get an Open/Save Dialog just like the first image. You can also remove the places bar and make it simple by setting OFN_EX_NOPLACESBAR to m_ofn.FlagsEx before DoModal-ing the dialog.
8.568642
76.874979