IOleClientSite interface

Provides the primary means by which an embedded object obtains information about the location and extent of its display site, its moniker, its user interface, and other resources provided by its container. An object server calls IOleClientSite to request services from the container. A container must provide one instance of IOleClientSite for every compound-document object it contains.

Note  This interface is not supported for use across machine boundaries.
 

Methods

The IOleClientSite interface has these methods.

Method Description
IOleClientSite::GetContainer Retrieves a pointer to the object's container.
IOleClientSite::GetMoniker Retrieves a moniker for the object's client site. An object can force the assignment of its own or its container's moniker by specifying a value for dwAssign.
IOleClientSite::OnShowWindow Notifies a container when an embedded object's window is about to become visible or invisible. This method does not apply to an object that is activated in place and therefore has no window separate from that of its container.
IOleClientSite::RequestNewObjectLayout Asks a container to resize the display site for embedded objects.
IOleClientSite::SaveObject Saves the embedded object associated with the client site. This function is synchronous; by the time it returns, the save will be completed.
IOleClientSite::ShowObject Asks a container to display its object to the user. This method ensures that the container itself is visible and not minimized.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header oleidl.h

See Also

IOleControlSite

IOleDocumentSite

IOleInPlaceSite

IOleObject::GetClientSite