How do I dock panes stacked on top of each other?
-
Hi all, Does anyone know how to (programmatically) dock two
CDockablePane
(or possiblyCControlbar
) on top of each other at the right side of the client window? I've tried just about every combination of alignment andCRect
in calls toCFrameWndEx::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.)
-
Hi all, Does anyone know how to (programmatically) dock two
CDockablePane
(or possiblyCControlbar
) on top of each other at the right side of the client window? I've tried just about every combination of alignment andCRect
in calls toCFrameWndEx::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.)
-
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'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!