MFC加载位图资源问题,下面运行时会报错,编译时不会,怎么回事 VS2010添加位图就有1个16*16一个32*32,咋回事
CImageList*headimagebig=newCImageList(); headimagebig->Crea...
CImageList *headimagebig=new CImageList(); headimagebig->Create(32,32,ILC_COLOR4,0,2); headimagebig->Add(AfxGetApp()->LoadIconW(IDI_ICON1)); headimagebig->Add(AfxGetApp()->LoadIconW(IDI_ICON2)); m_list.SetImageList(headimagebig,LVSIL_NORMAL); CImageList *headimagesmall=new CImageList(); headimagebig->Create(16,16,ILC_COLOR4,0,2); //这一句的错误 试验过 headimagebig->Add(AfxGetApp()->LoadIconW(IDI_ICON1)); headimagebig->Add(AfxGetApp()->LoadIconW(IDI_ICON2)); m_list.SetImageList(headimagesmall,LVSIL_SMALL);
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询