Originally posted by kzseattle
For OnInitDialog method, you dont need to add a message map entry of WM_INITDIALOG. The framework is supposed to call this method anyway.
Yes, everything you say is correct. I am sorry I doubted you. I had forgotten that CFileDialog calls OnInitDialog like other dialogs do.

So I don't know why OnInitDialog is not being called. The only possibility is that there are two instances of your CFileDialog.