Click here to Skip to main content
15,886,026 members
Articles / Desktop Programming / MFC
Article

Property List based Listbox

Rate me:
Please Sign up or sign in to vote.
4.80/5 (15 votes)
5 Jul 2005CPOL 102K   2.4K   59   14
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionProperty List based Listbox Pin
jinming86829-Sep-14 1:06
jinming86829-Sep-14 1:06 
QuestionThanks it would be good if support Multicomlumn Pin
maplewang10-Aug-12 20:03
maplewang10-Aug-12 20:03 
Generalit's great, thank you but Pin
wenshiguang28-Oct-06 0:24
wenshiguang28-Oct-06 0:24 
GeneralRe: it's great, thank you but Pin
wenshiguang28-Oct-06 23:52
wenshiguang28-Oct-06 23:52 
Generalgreat! Pin
javenreal31-Aug-06 1:26
javenreal31-Aug-06 1:26 
GeneralView Pin
picazo6-Mar-06 10:51
picazo6-Mar-06 10:51 
GeneralRe: View Pin
To Quang Hiep2-Dec-06 15:52
To Quang Hiep2-Dec-06 15:52 
Questionhow to remove LBS_SORT style? Pin
gswang5-Jan-06 14:07
gswang5-Jan-06 14:07 
AnswerRe: how to remove LBS_SORT style? Pin
Fletch5724-Oct-08 4:29
Fletch5724-Oct-08 4:29 
Generalvery good!! Pin
kuelite1-Oct-05 18:19
kuelite1-Oct-05 18:19 
GeneralListBox with headrs Pin
Pradeep Reddy G C29-Sep-05 18:32
Pradeep Reddy G C29-Sep-05 18:32 
GeneralVS.NET 2003: Errors C2040 and C2446 Pin
Mr. S18-Sep-05 9:04
Mr. S18-Sep-05 9:04 
GeneralVery Nice! Pin
WREY5-Jul-05 7:28
WREY5-Jul-05 7:28 
GeneralRe: Very Nice! Pin
gswang5-Jan-06 14:05
gswang5-Jan-06 14:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.