khanat-opennel-code/code/nel/tools/sound/source_sounds_builder/file_dialog.cpp
kervala 47ccfe279a Changed: Don't use anymore the current SDK in registry (very unreliable)
Changed: Use the Windows SDK installed with VC++ or the most recent compatible one
2013-09-27 10:52:44 +02:00

15 lines
532 B
C++

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