简体   繁体   中英

MFC: How dock multiple windows in same position?

I have mfc application with docking windows, I need to place multiple docking windows in same place ( one on each other ). When I dock child windows this way

DockPane(&m_wndNotify, AFX_IDW_DOCKBAR_BOTTOM);
DockPane(&m_wndOutput, AFX_IDW_DOCKBAR_BOTTOM);

they dock in bottom of mainframe , but one after other, not in same place. On runtime I can move windows and place them one on each other, but how can do this on beginning of application ?

所以我找到了将一个停靠窗口放置到另一个窗口的方法

m_wndOutput.AttachToTabWnd(&m_wndNotify, DM_STANDARD, TRUE);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM