通过点击按钮显示浏览对话筐,把对话筐的地址传到编辑筐中,如何在旁边的picture control中显示图片
void moca::OnBnClickedButton
{
CFileDialog dlg(True);
dlg.DoModal();
m_edit.SetWindowText(dlg.GetPathName());
}
void moca::OnBnClickedButton
{
CFileDialog dlg(True);
dlg.DoModal();
m_edit.SetWindowText(dlg.GetPathName());
}
hbmp = (HBITMAP)::LoadImage( AfxGetInstanceHandle(),
bmppath,IMAGE_BITMAP,0,0,
LR_LOADFROMFILE);
http://blogger.org.cn/blog/more.asp?name=hongrui&id=1364