如何设置CFileDlg可以打个的文件数目

怎么设置CFileDlg可以打个的文件数目?
我用CFileDlg创建一个打开文件的对话框,
并设置了可以打开多个文件,
但打开的文件一但超过20个以上的话就不成功,
返回空,
请问有什么办法解决?

------解决方案--------------------
这个应该没有什么必要吧,
------解决方案--------------------
就在打开函数的参数里设吧,看看MSDN
------解决方案--------------------
给的文件名称缓冲区是否足够?
------解决方案--------------------
应该是缓冲不够大,请增大缓冲
------解决方案--------------------
应该是缓冲不够大,请增大缓冲应该是缓冲不够大,请增大缓冲
------解决方案--------------------
To allow the user to select multiple files, set the OFN_ALLOWMULTISELECT flag before calling DoModal. You need to supply your own filename buffer to accommodate the returned list of multiple filenames. Do this by replacing m_ofn.lpstrFile with a pointer to a buffer you have allocated, after constructing the CFileDialog, but before calling DoModal. Additionally, you must set m_ofn.nMaxFile with the number of characters in the buffer pointed to by m_ofn.lpstrFile.


------解决方案--------------------
缓冲是定长以内的,自己动手保存打开的各个文件路径