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. Splitter Window with 2 views with MFC

Splitter Window with 2 views with MFC

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
3 Posts 3 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.
  • C Offline
    C Offline
    Chun Te Ewe
    wrote on last edited by
    #1

    Dear All, I would like to have 2 different views for a document. Each view to be display one at a time or together using a splitter window at any point of time. How best should I approach this? I'm open to any new ideas. I've just started programming and I think my question will be trivial to most of you out there. Thanks very much for taking the time to help me out Regards, Chun Te

    J J 2 Replies Last reply
    0
    • C Chun Te Ewe

      Dear All, I would like to have 2 different views for a document. Each view to be display one at a time or together using a splitter window at any point of time. How best should I approach this? I'm open to any new ideas. I've just started programming and I think my question will be trivial to most of you out there. Thanks very much for taking the time to help me out Regards, Chun Te

      J Offline
      J Offline
      Jawache
      wrote on last edited by
      #2

      If when you say different views you mean, different view classes, then you should use a Splitter Window and create static views, look at MSDN. Its difficult to create a Static Splitter window which can turn into a single window since the Splitter Asserts if there is only once view. have a look in the Splitter Section of codeproject.. there might be some ideas you can use. Asim Hussain e: asim@jawache.net w: www.jawache.net

      1 Reply Last reply
      0
      • C Chun Te Ewe

        Dear All, I would like to have 2 different views for a document. Each view to be display one at a time or together using a splitter window at any point of time. How best should I approach this? I'm open to any new ideas. I've just started programming and I think my question will be trivial to most of you out there. Thanks very much for taking the time to help me out Regards, Chun Te

        J Offline
        J Offline
        JohnnyG
        wrote on last edited by
        #3

        I've used this class, ST_SplitterWnd,to do just what you want. I have two views which are the same because the view has a tab control. The dual views allows the user to see two different tabs of data at once, if desired. It is here on Code Project in the Articles section. BTW, the class has a nice function called ToggleSide() which allows hiding one of the views. Thus, you can add both views and hide one and the user only sees one. But, when the user wants a second view, you just call ToggleSide() again.

        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