How to set the Images in a ListView ActiveX control

Hi all.... I have placed a ListView ActiveX control on a Form. My problem is how to assign an imagelist to it. In the properties I cannot set the imagelists. How can I do it?

Thanks
Demarcy
demarcyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
kamenimConnect With a Mentor Commented:
In the same way, as you inserted ListView control, insert ImageList control. In OnInitialUpdate handler of you Form class assign the Imagelist control to ListView. For example, call SetSmallIcons method of listview activeX wraper class. SetListView expert IDispatch pointer to imagelist, and such a pointer you can obtain from imagelist through [CImageListActiveX]::GetListImages.
That's it :)
good luck
0
All Courses

From novice to tech pro — start learning today.