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. Update tree view

Update tree view

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • H Offline
    H Offline
    hearties
    wrote on last edited by
    #1

    I have a TreeList view, where the first column is a tree view and the second cloumn is a list, with each list item corresponding to a tree item. I can change list item label via button control (to increase or decrease the value) or edit it value using a dialog box. When I use the button control, I find the the label on the list is not refreshed, I need to deselect it before the values changes. And when I use the dialog to change the value, it does nto change at all. How can I make the label on the list change 'instantaneously'? Thanks in advance

    F 1 Reply Last reply
    0
    • H hearties

      I have a TreeList view, where the first column is a tree view and the second cloumn is a list, with each list item corresponding to a tree item. I can change list item label via button control (to increase or decrease the value) or edit it value using a dialog box. When I use the button control, I find the the label on the list is not refreshed, I need to deselect it before the values changes. And when I use the dialog to change the value, it does nto change at all. How can I make the label on the list change 'instantaneously'? Thanks in advance

      F Offline
      F Offline
      Frederico Levesque
      wrote on last edited by
      #2

      After changing your value, try: UpdateData(false); Hope it will help! Regards Frederico

      H 1 Reply Last reply
      0
      • F Frederico Levesque

        After changing your value, try: UpdateData(false); Hope it will help! Regards Frederico

        H Offline
        H Offline
        hearties
        wrote on last edited by
        #3

        i've tried that btu it still doesn't work. :( :((

        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