TreeView CheckBoxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to remove check boxes for the child nodes but keep a check box for the
parent node. Does anyone have any ideas?

Thank you kindly.

Warm Regards.
 
James,

Unless you custom paint the control (a PITA), you won't be able to do
this.

Hope this helps.
 
You will have to use the TVM_SETITEM message : in the TVITEM structure
passed with this message, specify a state index of 0 for the TVITEM.state
member ( means no check box is displayed)

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
 
Back
Top