I've googled and all articles I've found show creating docking dialogs inside CMainFrame itself. I want/need to be able to create a Popup dialog that is in itself a dockable dialog as I need to create/add a multitude of dialogs to it but not the CMainFrame. ie.
class CustomObjectClassDocking : public CFrameWndEx
{
public:
DECLARE_DYNAMIC(CustomObjectClassDocking)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
}
int CustomObjectClassDocking::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
m_wndObjectPane.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
EnableAutoHidePanes(CBRS_ALIGN_ANY);
DockPane(&m_wndObjectPane);
}
void StartCustomDockDlg
{
CustomObjectClassDocking *pCustDock = new CustomObjectClassDocking();
pCustDock->Create(/*what is suppose to go here?*/); //stuck here currently.
}
*Class doesn't have to inherit from CFrameWndEx, but does need to be dockable.
Does anyone have any working examples, where I might find relevant info or how I'd go about this?
Thanks.