Re: Tree style property sheet
The process is rather simple.
Build your tree, and add the pointer to the dialog that each item needs to
display as the item data to each tree node as you build them.
Catch the selection change message of the tree control, hide the current
dialog, and display the dialog that the item it has a pointer to.
What I would do is derive a class from CTreeCtrl, and add a InsertItem
method that takes, the parent item, the item text, and the pointer to the
dialog. Then catch the TVN_SELCHANGE message in the same tree class, and do
you showing and hiding there.
The link you posted, has the right idea, but the demo didn't work!
I search codeproject and found this. Works pretty good.
"Dave Wellings" <Dave@nospam.com> wrote in message
I'm using CPropertySheet and CPropertyPage at present, but the number of
pages is making it look a bit messy. Instead of the tabs I'd like to have
a tree structure on the left of the property pages - many programs seem to
be using this approach to logically arrange properties.
Is there a way of doing this out of the box, or will I have to write the
functionality myself. I found this on codeguru:
but it was posted 10 years ago, and it may not be the best solution,
espacially with XP and Vista themes.