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. Tab in a SDI View or MainFrame

Tab in a SDI View or MainFrame

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++tutorialquestion
7 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.
  • G Offline
    G Offline
    godspeed123
    wrote on last edited by
    #1

    Hi, I have a SDI application that I wrote in .NET 2005 C++ and in unmanaged code, I have used the ST_SplitterWnd to split the windows, but now what I need to do is, I need to create tabs so that all the views are contained in one, so that I can make another instance of tabs when the next tab is clicked. Now I have no clue how to do this. Is there anyone else out there that knows how to do this? Thanks in advance

    M 1 Reply Last reply
    0
    • G godspeed123

      Hi, I have a SDI application that I wrote in .NET 2005 C++ and in unmanaged code, I have used the ST_SplitterWnd to split the windows, but now what I need to do is, I need to create tabs so that all the views are contained in one, so that I can make another instance of tabs when the next tab is clicked. Now I have no clue how to do this. Is there anyone else out there that knows how to do this? Thanks in advance

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      You want to use tabs instead of splitters? Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      G 1 Reply Last reply
      0
      • M Mark Salsbery

        You want to use tabs instead of splitters? Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        G Offline
        G Offline
        godspeed123
        wrote on last edited by
        #3

        Hi Mark, I still want the splitters, but I want say 3 splitters in 1 tab and 2 splitters in another.

        M L 2 Replies Last reply
        0
        • G godspeed123

          Hi Mark, I still want the splitters, but I want say 3 splitters in 1 tab and 2 splitters in another.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          You can use a tab window as the client of the main frame. Then use frame windows as tab windows and use the splitters in those frame windows as usual. Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          G 1 Reply Last reply
          0
          • M Mark Salsbery

            You can use a tab window as the client of the main frame. Then use frame windows as tab windows and use the splitters in those frame windows as usual. Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            G Offline
            G Offline
            godspeed123
            wrote on last edited by
            #5

            Do you by any chance have like a mock example? Thanks for the help

            M 1 Reply Last reply
            0
            • G godspeed123

              Do you by any chance have like a mock example? Thanks for the help

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              For some reason I was thinking MFC, sorry. You can ignore the frame window comments. I don't have a complete example, Which part is giving you trouble? You just need to build your window hierarchy the way you want it. For example: Create the main window Create a tab window as a child of the main window. See Tab Controls[^] Add code to so the tab window gets resized to fit the client area of the main window. Add tab windows to the tab control Add code that resizes/repositions the tab windows appropriately within the tabs. Add splitters to the tab windows. etc. etc. Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              1 Reply Last reply
              0
              • G godspeed123

                Hi Mark, I still want the splitters, but I want say 3 splitters in 1 tab and 2 splitters in another.

                L Offline
                L Offline
                led mike
                wrote on last edited by
                #7

                This comes with a splitter[^] called a sizer bar. I used to use this stuff all the time in MFC UI applications.

                led mike

                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