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

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • Information is data with context. The era of Big Data has begun demonstrating to information security that there is more that can, and must, be done to identify threats, reduce risk, address fraud, and improve compliance monitoring activities by bringing better context to data and thereby creating information for actionable intelligence. This analyst report sets the stage and provides insights into IT and information security practitioners' perceptions of the impediments to, and the solutions necessary for, …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds