SECWorkspaceManagerEx::SaveAdditionalViewPerFrame

SECPersistentTreeNode*SECWorkspaceManagerEx::SaveAdditionalViewPerFrame(CDocument*pDoc, CView*pView, CFrameWnd*pFrame, SECPTNFactory&nodeFactory, SECPersistentTreeNode*pParent, intnMultViewFrameUniqueID)

Override to store an an additional view stored per 1 frame window.

Defined in: SWSMGREX.CPP

Return Value

Pointer to the PTN object with the additional data storage, or NULL on error.

Parameters

pDoc

Pointer to the document associated with this additional view.

pView

Pointer to the additional view itself.

pFrame

Pointer to the frame window owning this additional view.

nodeFactory

Reference to node factory. A mechanism for tracking object allocation for memory management.

pParent

Parent PTN object.

nMultViewFrameUniqueID

A unique id number used for PTN node name, to avoid duplicate names.

Comments

This function is called whenever there is more than 1 view associated with 1 specific frame window. Although we can save the context in which we encountered this scenario, it is up to the application developer to store any additional information required to restore this state, as this is not something we can predict in a generic manner (is the app using a tab window? Splitter? Something else? No way to know).

See Also

OpenAdditionalViewPerFrame