CTreeCtrl::SortChildren
调用此函数按字母顺序对特定父项的子项在树视图控件的。
BOOL SortChildren(
HTREEITEM hItem
);
参数
- hItem
子项进行排序父项目的句柄。 如果 hItem 是 NULL,按从树的根将执行。
返回值
非零,如果成功;否则为0。
备注
SortChildren 不通过元素树将递归; hItem 的仅直接子项进行排序。
示例
// Sort all of the items in the tree control.
m_TreeCtrl.SortChildren(TVI_ROOT);
要求
Header: afxcmn.h