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. Replace a view in splitter window runtime.

Replace a view in splitter window runtime.

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresannouncement
4 Posts 2 Posters 1 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.
  • R Offline
    R Offline
    Rishav Prabhakar
    wrote on last edited by
    #1

    I would like to know a way to change the view of a particular pane in a splitter window. It should be something like an explorer window. Where on click of any tree branch on left side of window right hand side view updates. Similarily i would like to update my view. On click of any tree node a new pane should be displayed at the same position overriding the previous pane. sample code would be highly appreciated.

    L 1 Reply Last reply
    0
    • R Rishav Prabhakar

      I would like to know a way to change the view of a particular pane in a splitter window. It should be something like an explorer window. Where on click of any tree branch on left side of window right hand side view updates. Similarily i would like to update my view. On click of any tree node a new pane should be displayed at the same position overriding the previous pane. sample code would be highly appreciated.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      There are lots of samples of code such as you describe; take a look in the articles section[^].

      One of these days I'm going to think of a really clever signature.

      R 1 Reply Last reply
      0
      • L Lost User

        There are lots of samples of code such as you describe; take a look in the articles section[^].

        One of these days I'm going to think of a really clever signature.

        R Offline
        R Offline
        Rishav Prabhakar
        wrote on last edited by
        #3

        these examples describe how to use a tree control.. what i want is to update the SPLITTER pane with a new view on click of any tree item..

        L 1 Reply Last reply
        0
        • R Rishav Prabhakar

          these examples describe how to use a tree control.. what i want is to update the SPLITTER pane with a new view on click of any tree item..

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Rishav Prabhakar wrote:

          what i want is to update the SPLITTER pane with a new view on click of any tree item..

          Then you need to handle the notifications from the TreeView[^] side and take some action, like redrawing the window in the other pane, when the selection changes.

          One of these days I'm going to think of a really clever signature.

          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