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;
}