How to put icons/bmp into row of ListCtrl

Posted on 2011-04-27
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.
Question by:atomicgs12
    1 Comment
    LVL 24

    Accepted Solution

    as far as I know - it's how it works, ie checkboxes first, then all the test of the subitems

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now