FileDialog 打开很多文件是不是有限制的?
我一次选择很多文件的时候,大概是18个以上,就自动退出FileDialog 了,有什么办法解决呢?int a = dlg.domodel();a = 2了。
我一次选择很多文件的时候,大概是18个以上,就自动退出FileDialog 了,有什么办法解决呢?int a = dlg.domodel();a = 2了。
解决方案 »
- 散分4
- 怪事,为何按回车键窗口关闭?
- 在重绘的树控件中去掉水平滚动条,展开树有时还会出现滚动条的情况
- 求这种界面的代码,奉上100分!!
- 我在win2k3,vc6上新建一个工程,好像不是Unicode工程?如何转为Unicode工程?我要实现CString里面的字符按双字节存储。
- 请问在MFC中,GotoRecord这个函数应该包涵哪个头文件?我用的是vc6.0,没有装MSDN,现特急!在线等!跪谢!
- pos打印
- 一个关于icopyhook的难题,请各位大侠帮帮忙,帮助UP者有分!
- 写的程序发被发现有内存泄漏问题,请问有什么好的办法解决?
- 图象处理高手请进:给定一幅图象,如何增强它的对比度?思路是什么?谢谢!
- 魔兽对战平台网络延时问题
- 用SHGetFileInfo获得的图标句柄需要释放吗?
DWORD lStructSize;
HWND hwndOwner;
HINSTANCE hInstance;
LPCTSTR lpstrFilter;
LPTSTR lpstrCustomFilter;
DWORD nMaxCustFilter;
DWORD nFilterIndex;
LPTSTR lpstrFile;
DWORD nMaxFile;
LPTSTR lpstrFileTitle;
DWORD nMaxFileTitle;
LPCTSTR lpstrInitialDir;
LPCTSTR lpstrTitle;
DWORD Flags;
WORD nFileOffset;
WORD nFileExtension;
LPCTSTR lpstrDefExt;
LPARAM lCustData;
LPOFNHOOKPROC lpfnHook;
LPCTSTR lpTemplateName;
#if (_WIN32_WINNT >= 0x0500)
void * pvReserved;
DWORD dwReserved;
DWORD FlagsEx;
#endif // (_WIN32_WINNT >= 0x0500)
} OPENFILENAMEnMaxFile
Specifies the size, in TCHARs, of the buffer pointed to by lpstrFile. For the ANSI version, this is the number of bytes; for the Unicode version, this is the number of characters. The buffer must be large enough to store the path and file name string or strings, including the terminating NULL character. The GetOpenFileName and GetSaveFileName functions return FALSE if the buffer is too small to contain the file information. The buffer should be at least 256 characters long.
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT,
_T("All files (*.*)|*.*||")); char cBuffer[102400]; // 100 KB cBuffer[0]='\0';
dlg.m_ofn.lpstrFile=cBuffer;
dlg.m_ofn.nMaxFile=sizeof(cBuffer); // buffer size