We help IT Professionals succeed at work.

How to put icons/bmp into row of ListCtrl

atomicgs12 asked
Medium Priority
Last Modified: 2012-05-11
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.
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.