Here is how the dialog looks like:
How to include in your project
- Copy BmpDlg.cpp and BmpDlg.h into your project directory.
- Copy BmpDlg.rc into your res directory
- Add this line to your project's rc2 file:
- Add BmpDlg.cpp to your project.
How to use
The dialog is used just as a regular FileOpen dialog.
It has one additional member variable m_showpreview that you can store in the registry to make the "Show Preview" setting persistent.
This class illustrates the use of Hook procedures and additional templates for this kind of dialogs. It can be used as a template to create dialogs with other, more specific, previews.