LPCTSTR strImages = L"E:\\DssProjects\\PMIS\源代码\\ActiveX组件\\ATLTreeView\\TestAtlTreeView\\res\\bitmap.bmp";
m_hImageList = ImageList_LoadBitmap(_AtlBaseModule.GetModuleInstance(),
strImages, IMAGEWIDTH, IMAGEGROWBY, OleTranslateColor(m_oleFourColor, NULL, &m_clrFourColor));
m_hImageList = ImageList_LoadBitmap(_AtlBaseModule.GetModuleInstance(),
strImages, IMAGEWIDTH, IMAGEGROWBY, OleTranslateColor(m_oleFourColor, NULL, &m_clrFourColor));
LPCTSTR A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.你应该这样声明strImages为CString更好。
m_hImageList = ImageList_LoadBitmap(_AtlBaseModule.GetModuleInstance(),
strImages, IMAGEWIDTH, IMAGEGROWBY, OleTranslateColor(m_oleFourColor, NULL, &m_clrFourColor));运行起来说m_hImageList是空的!!,请求帮助
如果我想通过图片文件的路径的方式把图片加载进来,我该如何做?能给个例子嘛?