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

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Savvy enterprises are discovering that the cloud holds the power to transform IT processes and support business objectives. IT departments can use the cloud to redefine the continuum of development and operations—a process that is becoming known as DevOps. Download the Executive Brief DevOps: Why IT Operations Managers Should Care About the Cloud—prepared by Frost & Sullivan and sponsored by IBM—to learn how IBM SmartCloud Application services provide a robust platform that streamlines …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds