Color List Box With Extra Bits

Developed using VC6, tested on Win2k Pro and XP Pro.

This MFC CListBox class extension is result of searching for a listbox that does exactly what I have implemented here, except for the vertical alignment. After browsing through CodeGuru site, I found some code but none that fully matched my project needs. Still, all the credit to Patrice Godard and Paul M. Meidinger for designing CColorListBox class, found at, that I got the idea from.

CListBoxEBX Features
  • Background color.
  • Foreground color.
  • Text horizontal alignment.
  • Text vertical alignment.
  • Indicating inactive items.
  • Hooking of a DWORD value per item as in original SetItemData().
  • Allows for setting of the items height

Future desired features

  • Font manipulation.
  • Use of images
  • Horizontal scrolling.

// Instantiate the wrapper for the list box window
CListBoxEBX m_xList;

// This can be inserted in the ::OnInitDialog()
m_xList.AddItem("First string");
m_xList.AddItem("Last string");
m_xList.InsertItem("Middle string #1", 1, RGB(50,  100, 150),
                                          RGB(255, 255,255));
m_xList.InsertItem("Middle string #2", 1, RGB(100, 150, 200),
                                          RGB(255, 255,255));
m_xList.InsertItem("Middle string #3", 1, 12432321, 
                                          RGB(255, 255,255));

m_xList.SetActive(FALSE, 2);


Download demo project - 20 Kb
Download source - 5 Kb


  • The largest singling not de rigueur of Unaltered With Jordans, including the latest Retros and Cut-price Jordan Shoes.

    Posted by koltchsnr on 04/16/2013 07:56am

    Finishing the come up translation of Kindly Being Journal, our bi-annual in the government armoury [url=]hollister[/url]. It's a fetching incorruptible turn to up to our before one, and has amounted to a sizable undertaking. We've pushed the verso reckon [url=]abercrombie france[/url], features and anything else we could suppose of. Score is continually on my chairlady, so much that I don't snooze enthusiastically anymore, but I like to smear it's a side difference of caring too much [url=]air jordan pas cher[/url]. The one pro tem I need heed of movies up to engagement are when I'm flying. We do a portion of traveling this duration of year, and I was fortunate to pocket far a yoke of times. Although it's irresistible that it was filmed in Richmond, I don't exhortation watching “Lincoln” on a level; The lighting is [url=]abercrombie france[/url] too murkiness and commit me to sleep. We featured Kai Neville in this description, so I watched all of his surf videos and worked on beguiling inspect questions. At every stymie jargon, contest and accepted, and municipality [url=]air jordan[/url] assembly gathering during the 2004 presidential event, John Kerry wore a certainly distinguishing bracelet: the unprejudiced yellow LiveStrong wristband [url=]hollister france[/url]. He wasn’t the no greater than recognizable twig to embrace the cancer source root a silicone band. Usher, Lindsay Lohan and Ben Affleck were also [url=]abercrombie uk[/url] some of the 80 million-plus people who made it known they supported a mannerly impulse, and felt even-tempered doing it too [url=]moncler[/url]. Don’t like your legs? Do you spoil that your legs are too short? Too beefy [url=]air jordan pas cher[/url]? Too white? Whatever your on account of, you don’t like your legs and don’t want anyone else to look at them when wearing a deck unserviceable, shorts, or a skirt [url=]michael kors[/url]. No imbroglio! A ruffled crest inclination set in order the problem. Be well-founded to cynosure rid all the discomfort on your 俵ite half and adopt damage a in dark, unassuming bottom.Got an hourglass figure? If so, fortuitous you! While you [url=]hollister[/url] can sensibly bear up anything you destitution, you should silent be cautious of ruffles. You don’t impecuniousness to adopt ruffles on your curves to unsettle them away proportion. In desire to, impair them yon your sleeves, collar, or [url=]louboutin[/url] ass hem.

  • animal prints and decorative inserts in integrated metal Gengrang sufficiently catchy and elegant. Jordan

    Posted by Vetriatszy on 03/15/2013 12:41pm

    Cliffbeasley819 forum concerns are a super-not hard way to get answers in the Instructables social. Learn how to develop, publish, and / or allow almost anything! you try to find out a matter and the city will provide responds. You pick a qualified answer! publish the best community forum product! The running forums are site to ask questions, post a terrific display originally from an additional internet page, choose collaborators rrn your most sophisticated display, or perhaps a settle in any respect fascinating for any Instructables online. GuidesWhat these details is a guide? manuals are an amount of Instructables, which can include '5 Minute Recipes' or else 'Father's Day Gifts'. start out off manufacturing a person's from now on! spark up a new collection do you got a lot of thoughts for you to upload? If you'd like to upload your illustration a person give, Then through the you. remember to tag kids so are going to easier for you to find if you are reviewing our study. may publish snap shots once you are formulating you. had you discover a annoy or have a suggestion for people like us? now we prefer all the assistance the author's shoppers give us in discovering insects and therefore helping to make the location best for you. going:you may not likely track down al particular person, that also not necessarily believe our own regarding the value of a reliable abercrombie procure. it is was crowned shirt meant for youngsters as well as the folks people, who'll be location authorities, experts,trainers as well as have a very limited solution the application of garment. basically, for what reason behind accomplishment together with producer is known as a dedication while in providing the best products with regard to the potential customers. provides absolute total focus in regards to the layout and also development operation, which includes been useful to get more and even more individuals. a car looks forward to any type of in a hostile manner raised customer make. This you will converse with regards to the affection to suit polo tshirts most typically associated with abercrombie and moreover fitch, and next you appear at learn the way the programmers look after a single significant level of skill with their scalp these kinds of t shirts need to be vastly procure to put on ourselves in

  • Les pompes sont sold-out, mais allez sur notre living quarters amplification voir le reste de la chaussure showstopping de la marque. Jordan

    Posted by Vetriatszy on 03/14/2013 01:01pm

    enhanced sense of smell satisfy let me know until this will dress reduced speedily. we are actually in my 9th week. most of the unique object, its not food that's rendering me and my peers ailing. my spouce and i bought completely new bedroom furniture 2 weeks inside the past and scent of the solid cease is being me rrll. I cant still will end up in my bd. I hold back until it is a pointer needed for platform. stay in our nostril, jump in your bed coupled with hold the features over the run into so that i wont obtained odor the. i use sought almost everything effortless to make scent disappear altogether, although completely nothing is appropriate. certain sure that I only have to endure it. and just the concept of it puts everyone right into a weeping equip. people who have the things all around an individual's health or the healthiness of your newborn, you should invariably consult with a physician or possibly all the other doctor. thrill assess the policy but also regards to Use in advance of when in relationship to this site. weblink your own personal utilisation of the site usually means conformity grow to be limited since relation to Use

  • Multiple Selection?

    Posted by Saturion on 04/05/2006 05:36am

    Is it possible to select mutltiple objects? Is this disabled or are they simply not drawn?

  • Download link broken?

    Posted by spudlips on 12/16/2005 03:21pm

    Demo project and source links fail.

    • No Problem !

      Posted by Promotional Engine on 08/22/2006 10:20pm

      I can download both with no problem.

  • Sorting?

    Posted by alforno on 09/28/2004 04:48pm

    It seems like the sorting is not working when I use this class. Anyone know how to turn it back on or why it isn't working?

  • settabstops

    Posted by Legacy on 10/20/2003 12:00am

    Originally posted by: Johan

    How can I use with settabstops() ? it doesnt seem to work for me.


  • Disabled Item?

    Posted by Legacy on 06/24/2003 12:00am

    Originally posted by: David

    Can anyone explain what the difference is between active and inactive items?

  • Disabled Control?

    Posted by Legacy on 12/04/2002 12:00am

    Originally posted by: Tommy Evans

    If I disable the control, the background still shows normal (as if it was enabled). How do you change it so it appears disabled?

    Thanks - this is an awesome control!

  • how to change to backgroud image?

    Posted by Legacy on 07/16/2002 12:00am

    Originally posted by: linda

    can u change ur back image ,not color !Thanks a lot!

  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date