CDocTemplate::SetServerInfo
Determines the resources and classes when the server document is embedded or edited in-place.
void SetServerInfo(
UINT nIDOleEmbedding,
UINT nIDOleInPlaceServer = 0,
CRuntimeClass* pOleFrameClass = NULL,
CRuntimeClass* pOleViewClass = NULL
);
Parameters
nIDOleEmbedding
The ID of the resources used when an embedded object is opened in a separate window.nIDOleInPlaceServer
The ID of the resources used when an embedded object is activated in-place.pOleFrameClass
Pointer to a CRuntimeClass structure containing class information for the frame window object created when in-place activation occurs.pOleViewClass
Pointer to a CRuntimeClass structure containing class information for the view object created when in-place activation occurs.
Remarks
Call this member function to identify resources that will be used by the server application when the user requests activation of an embedded object. These resources consist of menus and accelerator tables. This function is usually called in the InitInstance of your application.
The menu associated with nIDOleInPlaceServer contains separators that allow the server menu to merge with the menu of the container. For more information about merging server and container menus, see the article Menus and Resources (OLE).
Requirements
Header: afxwin.h
See Also
Reference
CMultiDocTemplate::CMultiDocTemplate