다음을 통해 공유


CDocTemplate::SetContainerInfo

Determines the resources for OLE containers when editing an in-place OLE item.

void SetContainerInfo(
   UINT nIDOleInPlaceContainer 
);

Parameters

  • nIDOleInPlaceContainer
    The ID of the resources used when an embedded object is activated.

Remarks

Call this function to set the resources to be used when an OLE object is in-place activated. These resources may include menus and accelerator tables. This function is usually called in the CWinApp::InitInstance function of your application.

The menu associated with nIDOleInPlaceContainer contains separators that allow the menu of the activated in-place item to merge with the menu of the container application. For more information about merging server and container menus, see the article Menus and Resources (OLE).

Requirements

Header: afxwin.h

See Also

Concepts

CDocTemplate Class

CDocTemplate Members

Hierarchy Chart

CDocTemplate::SetServerInfo

CWinApp::InitInstance

CMultiDocTemplate::CMultiDocTemplate