Link to home
Start Free TrialLog in
Avatar of atomicgs12
atomicgs12Flag for United States of America

asked on

How to put icons/bmp into row of ListCtrl

I have an application written in C++ with MFC. I have a CListCtrl that I am putting in multiple rows of text with checkboxes in front of the text. Now I want to put icons/bitmaps in front of the checkboxes. I have managed to put the icons into the row but the icons show behind the check boxes then the text. I want to display the item as icon/checkbox/text in that order.
Presently I am using the LVITEM structue with the nImage pointing the particular image in my CImageList object. I do not want any headers on my column(s) and presently I am using only one column. Might I have to make this a two column list with the first column being the icon and the second column being the checkbox/text item?
An example would be best.
THanks
ASKER CERTIFIED SOLUTION
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial