MFC CComboBoxEx icon update issue

前端 未结 2 1073
野的像风
野的像风 2021-01-26 13:14

I am using the CComboBoxEx control in MFC to implement an address box for a browser application which shows the address and the related site icon.

According this link:

2条回答
  •  既然无缘
    2021-01-26 13:17

    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.

提交回复
热议问题