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 control

Tab control

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
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.
  • E Offline
    E Offline
    ekinnh
    wrote on last edited by
    #1

    I have a window with 3 pane. In the third pane i want to put tab control. Currently i wrote like this:

    m_wndSplitterHor.CreateStatic(this, 2, 1)
    m_wndSplitterHor.CreateView(0, 0, RUNTIME_CLASS(CSampleCollectList), CSize(280,300), pContext) //Pane 1
    m_wndSplitterHor.SetColumnInfo(0, 200, 0);

    m_wndSplitterVer.CreateStatic(&m_wndSplitterHor, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterHor.IdFromRowCol(1, 0))
    m_wndSplitterVer.CreateView(0, 0, RUNTIME_CLASS(CSampleTree), CSize(250,0), pContext) //Pane 2
    m_wndSplitterVer.CreateView(0, 1, RUNTIME_CLASS(/*My tab control*/), CSize(250,0), pContext) //Pane 3

    So, im stuck with this tab control. I dont know how to add it in the third pane.

    E S 2 Replies Last reply
    0
    • E ekinnh

      I have a window with 3 pane. In the third pane i want to put tab control. Currently i wrote like this:

      m_wndSplitterHor.CreateStatic(this, 2, 1)
      m_wndSplitterHor.CreateView(0, 0, RUNTIME_CLASS(CSampleCollectList), CSize(280,300), pContext) //Pane 1
      m_wndSplitterHor.SetColumnInfo(0, 200, 0);

      m_wndSplitterVer.CreateStatic(&m_wndSplitterHor, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterHor.IdFromRowCol(1, 0))
      m_wndSplitterVer.CreateView(0, 0, RUNTIME_CLASS(CSampleTree), CSize(250,0), pContext) //Pane 2
      m_wndSplitterVer.CreateView(0, 1, RUNTIME_CLASS(/*My tab control*/), CSize(250,0), pContext) //Pane 3

      So, im stuck with this tab control. I dont know how to add it in the third pane.

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      Why not in the same manner ? :)

      They sought it with thimbles, they sought it with care; They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap. :)

      1 Reply Last reply
      0
      • E ekinnh

        I have a window with 3 pane. In the third pane i want to put tab control. Currently i wrote like this:

        m_wndSplitterHor.CreateStatic(this, 2, 1)
        m_wndSplitterHor.CreateView(0, 0, RUNTIME_CLASS(CSampleCollectList), CSize(280,300), pContext) //Pane 1
        m_wndSplitterHor.SetColumnInfo(0, 200, 0);

        m_wndSplitterVer.CreateStatic(&m_wndSplitterHor, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterHor.IdFromRowCol(1, 0))
        m_wndSplitterVer.CreateView(0, 0, RUNTIME_CLASS(CSampleTree), CSize(250,0), pContext) //Pane 2
        m_wndSplitterVer.CreateView(0, 1, RUNTIME_CLASS(/*My tab control*/), CSize(250,0), pContext) //Pane 3

        So, im stuck with this tab control. I dont know how to add it in the third pane.

        S Offline
        S Offline
        Software_Developer
        wrote on last edited by
        #3

        Might [this] article help?

        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