I've tried many partial examples and Adam Drake's PowerBasic TRACE Log Viewer (from Poffs) and I'm still having a problem understanding how to do what I want.
What I want to do is be able to set the color of a treeview node based on variable criteria. The app uses two treeviews with treeview one being the different menus and the right treeview being the program names available based on the selected node in treeview one. Each time a new item is clicked in treeview one, the list of items displayed in treeview 2 changes. Clicking on an item in treeview 2 launches the program specified.
The app has users with different levels of access and those nodes they can't use should still show but in gray instead of black for the text.
Anyone have an easier example of coloring some treeview nodes a different color than the rest as they are being drawn?
Also I've found several ListView samples using NM_CUSTOMDRAW. Is it done exactly the same way there as for Treeviews?
Bob Mechler
What I want to do is be able to set the color of a treeview node based on variable criteria. The app uses two treeviews with treeview one being the different menus and the right treeview being the program names available based on the selected node in treeview one. Each time a new item is clicked in treeview one, the list of items displayed in treeview 2 changes. Clicking on an item in treeview 2 launches the program specified.
The app has users with different levels of access and those nodes they can't use should still show but in gray instead of black for the text.
Anyone have an easier example of coloring some treeview nodes a different color than the rest as they are being drawn?
Also I've found several ListView samples using NM_CUSTOMDRAW. Is it done exactly the same way there as for Treeviews?
Bob Mechler
Comment