MFC CComboBoxEx icon update issue

戏子无情 提交于 2019-12-02 09:31:27

Probably you need to call CComboBoxEx::SetImageList again.

lulu

I once encountered a similar problem. Later I found that the cause is the CImageList when I created it.

After I changed

m_pImgLst->Create(32,20,ILC_COLOR32,2,2);

to

m_pImgLst->Create(32,20,ILC_COLOR16,2,2); 

the phenomenon of updating until WM_KILLFOCUS received disappeared. But it's a pity that the image is a little less beautiful than before.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!