BCGControlBar Pro for MFC
virtual CBCGPFileDialogEx* CBCGPWinApp::CreateFileDialog ( BOOL  bOpenFileDialog,
DWORD  dwFlags,
CBCGPFileDialogOptions pOptions 

This method is called by the framework when a themed File Dialog should be created.

bOpenFileDialogSpecifies whether the file dialog is "Open" or "Save".
dwFlagsA list of standard OFN_ flags.
pOptionsA pointer to CBCGPFileDialogOptions object. If NULL, the default file dialog options will be used.
A pointer to CBCGPFileDialogEx object. Will be freed by the framework.

The default implementation creates CBCGPFileDialogEx object. Override this method if you need to use your own, CBCGPFileDialogEx-derived object instead.