CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    22

    CTreeCtrl/CTreeView

    I have created a SDI application in AppWizard with base class CTreeView instead of CView but no tree was being displayed on its main window when I run it after compiling and building this application. Please any body would tell me that why it happens. Did I miss something to create and display a tree structure while creating an application. Or there is need to do any more with its code to do so.
    Thanks.



  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: CTreeCtrl/CTreeView

    Use the InsertItem method in OnInitialUpdate() to insert items.

    In the PreCreateWindow you can change the style of your tree like this :


    cs.style |= TVS_HASLINES | TVS_HASBUTTONS;
    return CTreeView::PreCreateWindow(cs);




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured