C++ MFC Feature Pack --> Create multiple CDockablePanes onto an CDialog

前端 未结 2 510
眼角桃花
眼角桃花 2021-01-28 20:15

I try to create an area onto a CDialog, where I can put some CDockablePanes in. Those shall be perfectly dockable to a fixed dialog content.

The Codejock Dialog Panes Sa

相关标签:
2条回答
  • 2021-01-28 20:31

    Another simple method is to set your docking mode to DT_IMMEDIATE if you are in a Dlg implementing Docking Frames. Call CDockingManager::SetDockingMode(DT_IMMEDIATE);

    in you CFrameWndEx object's OnCreate (or someplace appropriate).

    0 讨论(0)
  • 2021-01-28 20:49

    Okay, I finally got it.

    Instead of letting the MFC create the dummywnd, I created it by myself. So the MFC skips the creation and the call to GetTopLevelFrame().

    Now the problem was, that the dummywnd member variable was protected and had no public set method. So I inherited a class and built myself a public set method.

    0 讨论(0)
提交回复
热议问题