在ocx中利用GDI+的DrawImage对picture控件进行贴图有关问题

在ocx中利用GDI+的DrawImage对picture控件进行贴图问题
在ocx中利用GDI+的DrawImage对picture控件进行贴图问题。DrawImage返回2.贴图失败。
但是在一般对话框下就返回0,贴图成功,是什么原因呢。
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);	
image=Image::FromFile(L"1.png"); 

CDC *pDC=m_pic.GetDC();
Graphics graphics(pDC->m_hDC);
int a=graphics.DrawImage(image,0,0);
CString str;
str.Format("%d",a);
//MessageBox(str);
gdi+

------解决方案--------------------
文件名要用全路径,如果图片是在ocx控件所在目录下的,那就用GetModuleFileName,第一个参数传入组件的句柄来计算全路径,因为相对路径与宿主程序或者父进程等有关