CTreeCtrl中的复选框 [英] CheckBoxes in CTreeCtrl

查看:142
本文介绍了CTreeCtrl中的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将复选框带到树控件元素上.复选框应仅出现在树控件的第一级元素上.内部树元素不应具有复选框.

树控件类似于Word 2010中Word选项的功能区"选项卡中的控件.

请帮忙.


问候
tvsrs

How can we bring checkboxes onto the tree control elements. Check Boxes should appear only on the first level elements of the tree control. Inner tree elements should not have check boxes.

Tree control is similar to the one in Custimation Ribbon Tab in Word Options in Word 2010

Please help.


Regards
tvsrs

推荐答案

您可以将项目图标用作复选框.当用户在项目图标内单击时,可以将图标更改为适当的状态(选中或未选中).为内部元素设置空图标,以避免出现复选框.
You can use item icons as checkboxes. When user clics inside of item''s icon, you would change the icon to appropriate state (checked or unchecked). Set empty icons to inner elements to avoid checboxes.


这篇关于CTreeCtrl中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆