VC6.0中MFC的背景图片如何实现拉伸

用位图当背景之后背景图片不能随对话框变大变小,背景图片是平铺了,如何实现拉伸,谢谢大神

CWnd* pWnd;
pWnd=GetDlgItem(IDC_IMAGE1);
CDC* pDC=pWnd->GetDC();
HDC hDC = pDC->m_hDC;

CRect rect_frame;
CImage image;
pWnd->GetClientRect(&rect_frame);
image.Load(fileName);

::SetStretchBltMode(hDC,HALFTONE);
::SetBrushOrgEx(hDC,0,0,NULL);

image.Draw(hDC,rect_frame);
ReleaseDC(pDC);//释放picture控件的DC

直接这样,图片会自动适应窗口大小

http://blog.sina.com.cn/s/blog_5e3cebec0101gg0h.html

也可用gdiplus
http://bbs.csdn.net/topics/340042873

http://bbs.csdn.net/topics/390254863

CBitnapDialog

使用 StretchBlt 来绘图,需要代码实现