2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,300 times in 2011. If it were a cable car, it would take about 38 trips to carry that many people.

Click here to see the complete report.

Displaying XP Style CFileDialog in Windows 7

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.

Follow

Get every new post delivered to your Inbox.

Join 216 other followers