如何disable树形控件里的一个节点
如题,我用的平台是VS2003 当接收到一个窗口更新消息时,将树控件中未用到的节点disable掉,看了MSDN里说是可以,但是没有找到相关的操作.
以下是MSDN里的原文:
Tree Control Item States Overview
Home | Overview | Sample
Each item in a tree control (CTreeCtrl) has a current state. For example, an item can be selected, disabled, expanded, and so on. For the most part, the tree control automatically sets an item's state to reflect user actions, such as selection of an item. However, you can also set an item's state by using theSetItemState member function and retrieve the current state of an item by using theGetItemState member function. For a complete list of item states, seeTree-View Control Constants in the Platform SDK.