CDocTemplate::SetServerInfo

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) in Visual C++ Programmer's Guide.

CDocTemplate OverviewClass MembersHierarchy Chart

See Also   CMultiDocTemplate::CMultiDocTemplate, CDocTemplate::SetContainerInfo, CWinApp::InitInstance