List Control and Property Grid with the MFC Feature Pack
(Page 1 of 4 )
Some of the tools and objects around us are good only for their specific purpose. Under any other circumstances these are as useless as a dollar on a deserted island in the middle of nowhere. However, these tools and objects do wonders if you use them for their proper purpose. The list and grid controls are these kinds of classes in the MFC.
Therefore the question pops up: is it worth it the time to learn them? Well as long as you do not use them, not really. Nevertheless, if you intend to put them to work in your code source and you already have strong pre-feature pack knowledge of the MFC, this article will definitely be the one to skim through.
If you missed or are interested in the other MFC feature pack controls, you can find them under my profile. I've already written three other articles treating this subject. I will continue to use the project entitled New Controls present on the MSDN here. Anyone who may want to follow along with my work will need Visual Studio 2008 installed with service pack one.
First, add a classic list control item in the resource editor. Then add a new class to your project via the editor. Inside the code source generated, replace the CListCtrl item with a CMFCListControl. If you populate it with a couple of simple items you will have already a working Excel-like list.

Next: Customize the list control >>
More .NET Articles
More By Gabor Bernat