单击MFC对话框中按钮弹出文件选择对话框

    技术2022-05-20  72

    CFileDialog cfd(true,_T(".jpg"),NULL,OFN_FILEMUSTEXIST|OFN_HIDEREADONLY,_T("Image file (*.jpg)|*.jpg|All Files (*.*)|*.*||"),this); if(cfd.DoModal()!=IDOK) // Tell if get the image { return; } CString m_path = cfd.GetPathName(); if(m_path=="") //判断图片路径是否存在 { return; }


    最新回复(0)