2 * Workaround from the MFC CFileDialog Multi Select bug
3 * Thanks to Jens Bohlmann (bohly@ki.comcity.de)
6 #include "file_dialog.h"
8 CMultiFileDialog::CMultiFileDialog(BOOL bOpenFileDialog
, LPCTSTR lpszDefExt
, LPCTSTR lpszFileName
,
9 DWORD dwFlags
, LPCTSTR lpszFilter
, CWnd
* pParentWnd
) :
10 CFileDialog(bOpenFileDialog
, lpszDefExt
, lpszFileName
, dwFlags
, lpszFilter
, pParentWnd
)
12 m_ofn
.lpstrFile
= m_strFileName
.GetBuffer(FILENAME_BUFFERSIZE
);
13 m_ofn
.nMaxFile
= FILENAME_BUFFERSIZE
;
14 m_ofn
.Flags
|= OFN_ALLOWMULTISELECT
;