Creating an Object Property List using the CListCtrl

************************************************************************************

Special Note: This Demo was inspired by the work of Matt Gullett,   “A Property List Control”.

************************************************************************************

The following is a result of my attempt to create a control that would allow an application to add objects to that control. These objects need not share the same properties. This control is a CListCtrl derived class. Benefits of this control are that it allows its user to place this control in any dialog box. Functions are provided which allow the user to add/remove items within the control. The information within the fields of the control can all be accessed individually.

The code was written in Visual C++ 6.0.

How to Use:

First Copy MyListCtrl.cpp, MyListCtrl.h and IDB_BITMAP to your project workspace.

Within your dialog header file #include the file “MyListCtrl.h”. Add a CListCtrl to your dialog box. Redefine the CListCtrl as a CMyListCtrl.

Examples of how to add a field to the control and how to get information from those fields can be found in the file MyListCtrlDlg.cpp. Though using this control should be simple and straightforward, any question, suggestions or problems can be forwarded to me at marlont@worldnet.att.net.

Download demo project - 57 KB

Date Last Updated Posted: February 5, 1999



Comments

  • Here's another great properties control, one of the best !!!

    Posted by Legacy on 07/29/2003 12:00am

    Originally posted by: Scott Evans

    I just stumbled across this one the other day, very nice!
    http://www.codejock.com/products/propertygrid/

    Reply
  • Another great properties control

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

    Originally posted by: Noemie Bigard

    Found this fresh one at http://www.aircom.org
    Noemie

    Reply
  • ExPropertiesList

    Posted by Legacy on 09/29/2001 12:00am

    Originally posted by: Mike Philis

    Do you need a powerfull PropertiesList? Check this out:
    
    http://www.exontrol.com/sg.jsp?content=products/expropertieslist

    Mike
    www.exontrol.com

    Reply
  • E_mail address change

    Posted by Legacy on 06/13/2001 12:00am

    Originally posted by: Marlon Tang

    My E_Mail address changed from marlont@worldnet.att.net. to marlontang@worldnet.att.net.

    Reply
  • Spin control...

    Posted by Legacy on 03/09/1999 12:00am

    Originally posted by: Cristina Mihet

    Normally when you press up arrow of a spin control the number must increase and when you press up arrow of a spin control the number must decrease. Isn't so ?

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

Top White Papers and Webcasts

  • Best-in-Class organizations execute on a strategy that supports the multi-channel nature of customer requests. These leading organizations do not just open up their service infrastructures to accommodate new channels, but also empower their teams to deliver an effective and consistent experience regardless of the channel selected by the customer. This document will highlight the key business capabilities that support a Best-in-Class customer engagement strategy.

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds