Re: Cimagelist in clistCtrl
Re: Cimagelist in clistCtrl
Hmmm, I seem to get the idea of cimagelist now
But still
I have used Shell32 function to insert system icons (available worldwide by google, so please I am not posting it again here) into list control sucessfully, now I wonder how the clistctrl's setimagelist distinguishes each added data/file's identity to assign it an appropriate icon ?
If I reason the same steps as you explain, I am stuck. Could Sir ovidiucuu ******** ?
Thank you Sir ovidiucucu
Re: Cimagelist in clistCtrl
See CListCtrl::InsertItem and CListCtrl::SetItem.
You will notice a parameter which is an index in the imagelist.
See also List Items and Image Lists.
Re: Cimagelist in clistCtrl
Hello, ovidiucucu
I have tried
HICON hi=ExtractAssociateIcon(afxgetinstancehandle(),_T("C:\\windows\\shell32.dll"),&dw);
imglisg.add(hi);
hi contains valid value (!NULL) but I have got an assertion failure at the add function :cry:
Re: Cimagelist in clistCtrl
Quote:
Originally Posted by
Dadidum
Hello, ovidiucucu
I have tried
HICON hi=ExtractAssociateIcon(afxgetinstancehandle(),_T("C:\\windows\\shell32.dll"),&dw);
imglisg.add(hi);
hi contains valid value (!NULL) but I have got an assertion failure at the add function :cry:
What is afxgetinstancehandle?
What is dw?
What is imglisg.add(hi);?
:confused:
PLease, show your actual code, not a pseudo-code. :cool: