MFC文件浏览按钮
void CSRAPLogDetectDlg::OnButtonBrowse()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CFileDialog fileDlg(TRUE);
fileDlg.m_ofn.lpstrTitle="文件打开对话框";
fileDlg.m_ofn.lpstrFilter="All Files(*.*)\0*.*\0\0"; fileDlg.m_ofn.lpstrDefExt="*.txt";
if(IDOK==fileDlg.DoModal())
{
CFile file(fileDlg.GetFileName(),CFile::modeRead);
m_edit_file=fileDlg.GetPathName();//文件名+后缀
UpdateData(FALSE);
}
}