In my MFC app (from VC6) I have a class dervied from CFileDialog for the purposes of customisation. I add a couple of check boxes in OnInitDialog and everything USED to work OK - on XP.
Now, compiling in VS2010 on Win7, this method no longer works and I guess I need to use IFileDialogCustomize and the like.
(I still need to support WinXP, so I'll need to do some sort of runtime check to see which customisation method to use).
However, I can't seem to get IFileDialogCustomize to be defined, even if I include <shobjidl.h>. Is it to do with my WIN_VER definition (0x0502)? How do I use IFileDialogCustomize and still support XP?
EDIT:
I got it to compile and work on Win7 - turned out to be my definition of NTDDI_VERSION (0x05010300 - WinXPSP3). But isn't that supposed to deinfe the minimum operating system? So the question remains, what is the 'proper' way to support CFileDialog customisation on Windows XP AND above...?