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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VC++,how to expnding certain node in tree control

VC++,how to expnding certain node in tree control

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structurestutorialquestion
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.
  • A Offline
    A Offline
    akira32
    wrote on last edited by
    #1

    VC++,how to expnding certain node in tree control(not using TVN_ITEMEXPANDING)? I just know the path in tree control I want to expand.

    C 1 Reply Last reply
    0
    • A akira32

      VC++,how to expnding certain node in tree control(not using TVN_ITEMEXPANDING)? I just know the path in tree control I want to expand.

      C Offline
      C Offline
      Cliff Hatch
      wrote on last edited by
      #2

      If you have the handle of the item you want to expand you can call CTreeCtrl::Expand. Something like this:

      pTreeCtrl->Expand(hItem, TVE_EXPAND);

      P.S. When I first read your post I thought you were just looking for a way to expand a node programmatically, but I've just realised there is more to it and the above reply is probably not much use - because TVE_EXPAND generates a TVN_ITEMEXPANDING message. What problem is the TVN_ITEMEXPANDING message causing you? Best Regards Cliff

      modified on Sunday, August 17, 2008 7:36 AM

      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