Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with tree control and checkboxes

Problem with tree control and checkboxes

Scheduled Pinned Locked Moved C / C++ / MFC
htmlcomdata-structureshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tnarol
    wrote on last edited by
    #1

    Hi, I have a tree control with checkboxes (using the following tip http://www.pocketpcdn.com/articles/checktree.html) Now I'd like to know how I can retrieve the boxes that have been checked. And if it is possible NOT to display the checkboxes corresponding to some items of the tree (I'd like checkboxes only for the leafs of the tree). Thanks

    F 1 Reply Last reply
    0
    • T Tnarol

      Hi, I have a tree control with checkboxes (using the following tip http://www.pocketpcdn.com/articles/checktree.html) Now I'd like to know how I can retrieve the boxes that have been checked. And if it is possible NOT to display the checkboxes corresponding to some items of the tree (I'd like checkboxes only for the leafs of the tree). Thanks

      F Offline
      F Offline
      FarPointer
      wrote on last edited by
      #2

      Hi, Wenever you click the treecontrol item the image coresponding to it is retreived from the imagelist and displayed . TreeCtrl sends a notificastion message of type TVN_GETDISPINFO . for this you need to set some flag in the LPARAM in the InsertItem.(check MSDN) So wen the user clicks the item it send a notification and inside you can maintain the list of items thats are geting checked and wen you uncheck you remove the index from your container. You can chcek this link:- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/_wcesdk_win32_TVITEM_str.asp[^] Regards, FarPointer Blog:http://farpointer.blogspot.com/

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups