CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2000
    Posts
    124

    Treeview Control

    I am using the treeview control and I need to know when the user has double clicked a single item and not a folder that has to be expanded. I would like to do something different if they double click and item rather than a folder.
    Can anyone help me with this?

    Thanks!
    Erica


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Treeview Control

    A node object (item in a treeview) has a property children. This gives you the number of child nodes the node has. If this is 0, you will know it is not a 'folder'.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured