Click here to Skip to main content
12,550,379 members (45,448 online)
Click here to Skip to main content
Add your own
alternative version


31 bookmarked

A Property Table Editor

, 11 Aug 2004
Rate this:
Please Sign up or sign in to vote.
An article showing a property table editor like VC7.0's property table.


Recently, I wanted to use a property table editor like VC7.0's. So, I searched it in CodeProject website. I found a good example in "CPropTree v1.0 - Property Tree Control", which is created by sramsay. Thanks to the author. I modified it a little, and added a toolbar, and a combobox, which made it like VC7.0's property table.

I added a new class, used for toolbar: CPropToolbar, which is not created originally by me. I'm sorry I forget who created it originally.

And I added a new class: CToolbarContainer, which is used to respond to the toolbar's commands.


In PropToolbar.cpp, you need to add you toolbar's ID.

static const UINT toolbarItems[] =

BEGIN_MESSAGE_MAP(CPropToolbar, CToolBarCtrl)
                       ID_PROP_ALPHABETIC, OnNeedTextA)
                       ID_PROP_ALPHABETIC, OnNeedTextW)


In ToolbarContainer.h, I added a message map to deal with the toolbar's commands.

afx_msg void OnSortByCategory();
afx_msg void OnSortByAlpha();

You can get the detailed implementation in my source code. Maybe my code is short of comments, but tidy enough :(, you can get it.

A Big Interesting Bug

Yell, after I implemented it, I was happy it looked very well. But soon, I found a big bug. Sometimes when you are operating it, or when you minimize it, wait for some time (maybe half an hour), you will find the toolbar changed as before.

I don't know what causes that. Maybe someone can tell me or solve it. I will really appreciate him/her very much! Can you?


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
China China
A programmer graduated 2003, and worked for one year. Program with C/C++, sometimes use perl, or java, etc. I like CodeProject website, and want to make more friends here. I'm dreaming to beacome a guy in programming.

You may also be interested in...


Comments and Discussions

GeneralFeature Request Pin
Hamid Reza Mohammadi10-Apr-07 1:00
memberHamid Reza Mohammadi10-Apr-07 1:00 
GeneralSDK Update Pin
Yohi13-Aug-04 1:38
memberYohi13-Aug-04 1:38 
GeneralRe: SDK Update Pin
david connell7-Jul-05 13:29
memberdavid connell7-Jul-05 13:29 
GeneralExcellent Pin
Paul Selormey12-Aug-04 12:05
memberPaul Selormey12-Aug-04 12: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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161021.1 | Last Updated 12 Aug 2004
Article Copyright 2004 by skybirdcao
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid