65.9K
CodeProject is changing. Read more.
Home

Property List based Listbox

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.80/5 (14 votes)

Jul 5, 2005

CPOL
viewsIcon

103028

downloadIcon

2446

Property list based listbox like VB PropertyList.

Sample Image - Property_List.gif

Introduction

This class implements a property list like VB. This control is based on the MFC CListbox and it allows you to edit the values easily, like edit box, dropdownlist, dropdown, checkcombobox, color, font, folder dialog, file dialog, IP address control, date time checkbox.

If you want to use this control, please follow the following:

  1. The following eight files are necessary:
    • PropertyList.cpp
    • PropertyList.h
    • checkboxes.bmp
    • ChkComboBox.cpp
    • ChkComboBox.h
    • FoldersDialog.cpp
    • FoldersDialog.h
    • MemDC.h

    The checkboxes.bmp must be added into your project and its resource ID must be "IDB_CHECKBOX".

  2. Modify the list box properties as Owner draw: Variable and Has strings.