SECMultiDocTemplate::CreateNewDockableFrame

SECDockableFrame*SECMultiDocTemplate::CreateNewDockableFrame(CDocument*pDoc, CFrameWnd*pOther, UINTnDockBarID, SECDockPos*pDockPos, SECDockSize*pDockSize, CDocument*pDoc)

Create a dockable frame to wrap the docking view

Defined in: Sdocmult.cpp

Return Value

Pointer to new dockable frame

Parameters

pDoc

Document to be associated with new dockable frame

pOther

The frame window on which the new frame window is to be based. Can be NULL.

nDockBarID

Dockbar parent of new frame. Can be AFX_IDW_DOCKBAR_TOP, AFX_IDW_DOCKBAR_BOTTOM, AFX_IDW_DOCKBAR_LEFT, AFX_IDW_DOCKBAR_RIGHT, or 0. If 0, SECMDIFrameWnd::OnSetDefaultDockPosAndSize() is called to determine a value.

pDockPos

Pointer to dock position structure. Defined in sbardock.h. If null pointer, SECMDIFrameWnd::OnSetDefaultDockPosAndSize() is called to determine a value.

pDockSize

Pointer to dock position size. Defined in sbardock.h. If null pointer, SECMDIFrameWnd::OnSetDefaultDockPosAndSize() is called to determine a value.

pDoc

This function is used to create a new frame window to house a docked view inside a dockbar.