Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to put icons/bmp into row of ListCtrl

Posted on 2011-04-27
1
Medium Priority
?
390 Views
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.
THanks
0
Comment
Question by:atomicgs12
1 Comment
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 2000 total points
ID: 35483761
as far as I know - it's how it works, ie checkboxes first, then all the test of the subitems
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

810 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