Re: CImageList for CListCtrl in a modeless dialog
Does it work the first time you run the dialog and are you deleting the
imagelist aftewards. Otherwise it shouldn't make any difference. Maybe you
could show some fo the code so we could see how you set it up?
Tom
"andy" <andy.brezing@gmx.de> wrote in message
news:1174050523.905904.159050@o5g2000hsb.googlegroups.com...
Hello,
i'm using an CImageList in a derived CListCtrl. In a modal dialog
containing the CListCtrl everything works fine, the images get
displaied.
Using a modeless dialog the images/toolvar icons didn't get displaied
correctly (only in release version, in debug versions it work fine).
What's missing or wrong?
Any hints are welcome!
Cheers Andy
---
Member variable of a derived CListCtrl
class DLLEXPORT CListMaik : public CListCtrl
{
....
private:
CImageList m_cImageIcons;
}
Function Creating image list icons from toolbar IDR_LISTICONS
void CListMaik::CreateListIcons(void)
{
m_cImageIcons.Create(IDR_LISTICONS, 16, 16, RGB(255,0,255));
SetImageList(&m_cImageIcons, LVSIL_SMALL);
}