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. How do I dock panes stacked on top of each other?

How do I dock panes stacked on top of each other?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comtutorial
3 Posts 2 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.
  • M Offline
    M Offline
    Mattias G
    wrote on last edited by
    #1

    Hi all, Does anyone know how to (programmatically) dock two CDockablePane (or possibly CControlbar) on top of each other at the right side of the client window? I've tried just about every combination of alignment and CRect in calls to CFrameWndEx::DockPane, but to no avail. This is what I get:

    ----- -----
    ----- -----

    This is what I want:

    -------
    -------
    -------
    -------

    I would be really thankful for any input on this. Thanks /M (And, yes, I've searched the forums here but didn't find anything, I'm aware of the website www.google.com, and, yes, I know the location of the documentation for MFC and the Feature Pack, and, yes, I've tried just about everything I could come up with.)

    M 1 Reply Last reply
    0
    • M Mattias G

      Hi all, Does anyone know how to (programmatically) dock two CDockablePane (or possibly CControlbar) on top of each other at the right side of the client window? I've tried just about every combination of alignment and CRect in calls to CFrameWndEx::DockPane, but to no avail. This is what I get:

      ----- -----
      ----- -----

      This is what I want:

      -------
      -------
      -------
      -------

      I would be really thankful for any input on this. Thanks /M (And, yes, I've searched the forums here but didn't find anything, I'm aware of the website www.google.com, and, yes, I know the location of the documentation for MFC and the Feature Pack, and, yes, I've tried just about everything I could come up with.)

      M Offline
      M Offline
      Mattias G
      wrote on last edited by
      #2

      Haha! Solved it seconds after posting:

      DockPane(&m_wndTop, AFX_IDW_DOCKBAR_RIGHT);
      m_wndBottom.DockToWindow(&m_wndTop, CBRS_ALIGN_BOTTOM);

      Might help someone else ... /M

      I 1 Reply Last reply
      0
      • M Mattias G

        Haha! Solved it seconds after posting:

        DockPane(&m_wndTop, AFX_IDW_DOCKBAR_RIGHT);
        m_wndBottom.DockToWindow(&m_wndTop, CBRS_ALIGN_BOTTOM);

        Might help someone else ... /M

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        I've done that a few times - and I appreciate people posting answers too. Good on ya! Iain.

        I am one of "those foreigners coming over here and stealing our jobs". Yay me!

        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