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

  • Instead of only managing projects organizations do need to manage value! "Doing the right things" and "doing things right" are the essential ingredients for successful software and systems delivery. Unfortunately, with distributed delivery spanning multiple disciplines, geographies and time zones, many organizations struggle with teams working in silos, broken lines of communication, lack of collaboration, inadequate traceability, and poor project visibility. This often results in organizations "doing the …

  • The impact of a data loss event can be significant. Real-time data is essential to remaining competitive. Many companies can no longer afford to rely on a truck arriving each day to take backup tapes offsite. For most companies, a cloud backup and recovery solution will eliminate, or significantly reduce, IT resources related to the mundane task of backup and allow your resources to be redeployed to more strategic projects. The cloud - can now be comfortable for you – with 100% recovery from anywhere all …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds