Win32 实现 MFC CFileDialog 对话框
2020-12-13 04:35
标签:文件 amp size har file ar void CWriteWnd::OpenFileDialog() Win32 实现 MFC CFileDialog 对话框,搜素材,soscw.com Win32 实现 MFC CFileDialog 对话框 标签:文件 amp size har file ar 原文地址:http://www.cnblogs.com/chechen/p/3822356.html
{
OPENFILENAME ofn;
TCHAR szFile[MAX_PATH] = _T("");
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = *this;
ofn.lpstrFile = szFile;
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = NULL;
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
GetOpenFileName(&ofn);
/*if (GetOpenFileName(&ofn))
{
std::vector
}*/
}
文章标题:Win32 实现 MFC CFileDialog 对话框
文章链接:http://soscw.com/essay/29618.html