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

  • 10 Rules that Make or Break Enterprise App Development Projects In today's app-driven world, application development is a top priority. Even so, 68% of enterprise application delivery projects fail. Designing and building applications that pay for themselves and adapt to future needs is incredibly difficult. Executing one successful project is lucky, but making it a repeatable process and strategic advantage? That's where the money is. With help from our most experienced project leads and software engineers, …

  • 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