| 发表于:2007-05-15 18:18:238楼 得分:0 |
cfiledialog dlg(true,_t( "jpg "),_t( "*.jpg "),ofn_hidereadonly ¦ofn_overwriteprompt,_t( "图片文件(*.jpg) ¦*.jpg ¦ ")); cfile file; cstring filename; cstring filepathname; if(dlg.domodal()==idok) { bmpname.format( "%s ",dlg.getpathname());//给bmpname赋值 // afxmessagebox(bmpname); hbitmap hbitmap; hbitmap=hbitmap(imageload(bmpname,hbitmap)); if(hbitmap==null) return ; if (hbitmap) { cimagedataobject::insertbitmap(m_pricheditole, hbitmap); } } | | |
|