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. MFC tree control list generation

MFC tree control list generation

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++data-structures
3 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.
  • L Offline
    L Offline
    lastgen
    wrote on last edited by
    #1

    I am improving an application that is taking forever to load, primarily because each time it loads it initialises a full tree of nearly 100000 items, even though there are only 5 or so keys viewable from the root path. Does the MFC tree control have any sort of support for reading only what is needed, or do I need to hook the open scope(whatever they may be called) functions and code it manually? When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

    N 1 Reply Last reply
    0
    • L lastgen

      I am improving an application that is taking forever to load, primarily because each time it loads it initialises a full tree of nearly 100000 items, even though there are only 5 or so keys viewable from the root path. Does the MFC tree control have any sort of support for reading only what is needed, or do I need to hook the open scope(whatever they may be called) functions and code it manually? When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      This[^] will be of some help. Take a look at TVN_GETDISPINFO. Another keyword for look up is LPSTR_TEXTCALLBACK. For more details on how this works take a look at the TVITEM structure documentation for more details. Look closely at the callback values for Image and Text. Using this you can create your own virtual tree control.


      Nibu thomas Software Developer

      L 1 Reply Last reply
      0
      • N Nibu babu thomas

        This[^] will be of some help. Take a look at TVN_GETDISPINFO. Another keyword for look up is LPSTR_TEXTCALLBACK. For more details on how this works take a look at the TVITEM structure documentation for more details. Look closely at the callback values for Image and Text. Using this you can create your own virtual tree control.


        Nibu thomas Software Developer

        L Offline
        L Offline
        lastgen
        wrote on last edited by
        #3

        Thanks heaps. When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

        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