Not Quite A Toolbar

This is a discussion on Not Quite A Toolbar within the Windows Programming forums, part of the Platform Specific Boards category; What I am trying to do is have a static bar going down the side of an MDI app with ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    381

    Not Quite A Toolbar

    What I am trying to do is have a static bar going down the side of an MDI app with a tree view of a list of files in it (kind of like the project bar in msvc). Does anyone know the best way of going about this as i really have no idea.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    I only know one way, so maybe it's not the best

    Use a splitter to split your MDI child in two. The easy way would be placing a CTreeView in the left side, but if you want more than just one tree, you should take a CFormView derived class and put your elements on there.

    I found nice splitter projects on www.codeguru.com.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    Thanks but I need the rest of the window to remain as an mdi.

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    I have a treeview down the left of my MDI.
    I just created a child wondow for it (and the listbox below it) then created the treeview as a child ctrl. Make it 100% of the client and remove the systembar / edge (frame) styles from the child window.

    The rest of the screen is another child on which the data selected is displayed.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    control bar

    create a resource and derive the class from CControlBar
    then create it the CMainFrame as you would any other tool bar
    zMan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cannot insert toolbar into rebar
    By supernater in forum Windows Programming
    Replies: 1
    Last Post: 06-02-2009, 03:35 AM
  2. toolbar button question
    By supernater in forum Windows Programming
    Replies: 1
    Last Post: 05-25-2009, 08:24 PM
  3. Toolbar color
    By mrafcho001 in forum Windows Programming
    Replies: 2
    Last Post: 04-17-2006, 10:55 AM
  4. Dockable Toolbar (Like taskbar or office toolbar)
    By om3ga in forum Windows Programming
    Replies: 2
    Last Post: 11-20-2005, 02:09 AM
  5. Toolbar Buttons
    By G'n'R in forum Windows Programming
    Replies: 2
    Last Post: 10-02-2003, 04:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21