List Control Images

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I have looked all around, and still can't see why this doesn't work.

I want to simply insert an image in a column of my list control. I can't
seem to get my image past the first subitem, even if I use the LVITEM
structure. It will display the images denoted fromthe image list, bu only
in the first column.

Also when I use SetImageList for my control, The first image ion the list
always appears before any text I insert in the first column. If I comment
out the SetImageList function, no image appears (duh).

Any ideas....TIA

b


.



Relevant Pages

  • Re: List Control Images
    ... I set the extended styles for subitem ... m_ListFirst.SetItem(nItem, nSubItem, LVIF_IMAGE, NULL, nImage, 0, 0, 0); ... I want to simply insert an image in a column of my list control. ... always appears before any text I insert in the first column. ...
    (microsoft.public.vc.mfc)
  • How to create a VS .NET properties-like list control?
    ... VS .NET uses a control that looks like a 2-column list control in report ... view for properties (e.g. project properties). ... The first column in the list ... cell in the second row with a combo box. ...
    (microsoft.public.vc.mfc)
  • Re: list control design help
    ... You could put string information into the lPararm and use FindItem() to do a ... you could use FindItem to search the first column and ... Essentially I want to create a multi-column list control (I.e. - report ... code example off of code project so that isn't a problem anymore. ...
    (microsoft.public.vc.mfc)
  • HELP!!!!! MFC CListCtrl with CImageList
    ... I am quite new to MFC and I cannot get this to work!!! ... add icons to the first column in my list control. ...
    (microsoft.public.vc.mfc)
  • Re: List Control Images
    ... I want to simply insert an image in a column of my list control. ... seem to get my image past the first subitem, even if I use the LVITEM ... always appears before any text I insert in the first column. ... comment out the SetImageList function, ...
    (microsoft.public.vc.mfc)