vs2010 MFC加载图片的问题
HBITMAPm_hBmp=(HBITMAP)LoadImage(NULL,_T("E:\\1.jpg"),IMAGE_BITMAP,0,0,LR_LOADFROMFIL...
HBITMAP m_hBmp = (HBITMAP)LoadImage(NULL,_T("E:\\1.jpg"),IMAGE_BITMAP,0,0,LR_LOADFROMFILE);未提示任何错误和警告,但是获取的m_hBmp为0,求大神解答
那张 图片是存在的 展开
那张 图片是存在的 展开
展开全部
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648045(v=vs.85).aspx
If the fuLoad parameter includes the LR_LOADFROMFILE value, lpszName is the name of the file that contains the stand-alone resource (icon, cursor, or bitmap file). Therefore, set hinst to NULL.
If the fuLoad parameter includes the LR_LOADFROMFILE value, lpszName is the name of the file that contains the stand-alone resource (icon, cursor, or bitmap file). Therefore, set hinst to NULL.
追问
那你怎么填写参数
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询