void CBbView::OnPicture()
{
CString filename;
CString defaultfilename="";
CString filepath;
CString fileextention;//文件扩展名
CString filter;//文件过滤
filter="位图文件(*.bmp)|*.bmp|JPG文件(*.jpg)|*.jpg|所有文件(*.*)|*.*||";
fileextention=".bmp";
CFileDialog OpenDlg1(TRUE,fileextention,defaultfilename,
OFN_HIDEREADONLY,filter);//true 为打开,false 为保存
if(OpenDlg1.DoModal () == IDCANCEL)
2021-11-08 15:21:56
30KB
光标插入图
1