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. Mobile Development
  3. Mobile
  4. CTreeView

CTreeView

Scheduled Pinned Locked Moved Mobile
data-structureshelptutorial
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.
  • Gamil MohamadG Offline
    Gamil MohamadG Offline
    Gamil Mohamad
    wrote on last edited by
    #1

    I designed a simple SDI application with a CTreeView as a main view and i used GetTreeCtrl() to insert items to the tree view in OnInitialUpdate() function of the TreeView class like this: (GetTreeCtrl().InsertItem_T("Item A")) :sigh: So the problem is: i like to add new item to this TreeView from a Dialog when i click on Ok button but i dont know how to use GetTreeCtrl() from the Dialog .

    J 1 Reply Last reply
    0
    • Gamil MohamadG Gamil Mohamad

      I designed a simple SDI application with a CTreeView as a main view and i used GetTreeCtrl() to insert items to the tree view in OnInitialUpdate() function of the TreeView class like this: (GetTreeCtrl().InsertItem_T("Item A")) :sigh: So the problem is: i like to add new item to this TreeView from a Dialog when i click on Ok button but i dont know how to use GetTreeCtrl() from the Dialog .

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      You must pass a reference (or pointer) of the CTreeView object to your dialog. Then you will be able to do what you want. The best way to do this is to place the code to manipulate the tree on the view. When the user closes the dialog, the view changes the tree accordingly. Regards, João Paulo Figueira Embedded MVP

      Gamil MohamadG 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        You must pass a reference (or pointer) of the CTreeView object to your dialog. Then you will be able to do what you want. The best way to do this is to place the code to manipulate the tree on the view. When the user closes the dialog, the view changes the tree accordingly. Regards, João Paulo Figueira Embedded MVP

        Gamil MohamadG Offline
        Gamil MohamadG Offline
        Gamil Mohamad
        wrote on last edited by
        #3

        Thanks Alot Mr João Paulo Figueira, :-D Your Idea works very good :-D

        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