Share via


IOleObjectImpl Class

This class implements IUnknown and is the principal interface through which a container communicates with a control.

Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

template< 
class T  
> 
class ATL_NO_VTABLE IOleObjectImpl : 
public IOleObject

Parameters

  • T
    Your class, derived from IOleObjectImpl.

Members

Public Methods

Name

Description

IOleObjectImpl::Advise

Establishes an advisory connection with the control.

IOleObjectImpl::Close

Changes the control state from running to loaded.

IOleObjectImpl::DoVerb

Tells the control to perform one of its enumerated actions.

IOleObjectImpl::DoVerbDiscardUndo

Tells the control to discard any undo state it is maintaining.

IOleObjectImpl::DoVerbHide

Tells the control to remove its user interface from view.

IOleObjectImpl::DoVerbInPlaceActivate

Runs the control and installs its window, but does not install the control's user interface.

IOleObjectImpl::DoVerbOpen

Causes the control to be open-edited in a separate window.

IOleObjectImpl::DoVerbPrimary

Performs the specified action when the user double-clicks the control. The control defines the action, usually to activate the control in-place.

IOleObjectImpl::DoVerbShow

Shows a newly inserted control to the user.

IOleObjectImpl::DoVerbUIActivate

Activates the control in-place and shows the control's user interface, such as menus and toolbars.

IOleObjectImpl::EnumAdvise

Enumerates the control's advisory connections.

IOleObjectImpl::EnumVerbs

Enumerates actions for the control.

IOleObjectImpl::GetClientSite

Retrieves the control's client site.

IOleObjectImpl::GetClipboardData

Retrieves data from the Clipboard. The ATL implementation returns E_NOTIMPL.

IOleObjectImpl::GetExtent

Retrieves the extent of the control's display area.

IOleObjectImpl::GetMiscStatus

Retrieves the status of the control.

IOleObjectImpl::GetMoniker

Retrieves the control's moniker. The ATL implementation returns E_NOTIMPL.

IOleObjectImpl::GetUserClassID

Retrieves the control's class identifier.

IOleObjectImpl::GetUserType

Retrieves the control's user-type name.

IOleObjectImpl::InitFromData

Initializes the control from selected data. The ATL implementation returns E_NOTIMPL.

IOleObjectImpl::IsUpToDate

Checks if the control is up to date. The ATL implementation returns S_OK.

IOleObjectImpl::OnPostVerbDiscardUndo

Called by DoVerbDiscardUndo after the undo state is discarded.

IOleObjectImpl::OnPostVerbHide

Called by DoVerbHide after the control is hidden.

IOleObjectImpl::OnPostVerbInPlaceActivate

Called by DoVerbInPlaceActivate after the control is activated in place.

IOleObjectImpl::OnPostVerbOpen

Called by DoVerbOpen after the control has been opened for editing in a separate window.

IOleObjectImpl::OnPostVerbShow

Called by DoVerbShow after the control has been made visible.

IOleObjectImpl::OnPostVerbUIActivate

Called by DoVerbUIActivate after the control's user interface has been activated.

IOleObjectImpl::OnPreVerbDiscardUndo

Called by DoVerbDiscardUndo before the undo state is discarded.

IOleObjectImpl::OnPreVerbHide

Called by DoVerbHide before the control is hidden.

IOleObjectImpl::OnPreVerbInPlaceActivate

Called by DoVerbInPlaceActivate before the control is activated in place.

IOleObjectImpl::OnPreVerbOpen

Called by DoVerbOpen before the control has been opened for editing in a separate window.

IOleObjectImpl::OnPreVerbShow

Called by DoVerbShow before the control has been made visible.

IOleObjectImpl::OnPreVerbUIActivate

Called by DoVerbUIActivate before the control's user interface has been activated.

IOleObjectImpl::SetClientSite

Tells the control about its client site in the container.

IOleObjectImpl::SetColorScheme

Recommends a color scheme to the control's application, if any. The ATL implementation returns E_NOTIMPL.

IOleObjectImpl::SetExtent

Sets the extent of the control's display area.

IOleObjectImpl::SetHostNames

Tells the control the names of the container application and container document.

IOleObjectImpl::SetMoniker

Tells the control what its moniker is. The ATL implementation returns E_NOTIMPL.

IOleObjectImpl::Unadvise

Deletes an advisory connection with the control.

IOleObjectImpl::Update

Updates the control. The ATL implementation returns S_OK.

Remarks

The IOleObject interface is the principal interface through which a container communicates with a control. Class IOleObjectImpl provides a default implementation of this interface and implements IUnknown by sending information to the dump device in debug builds.

Related Articles   ATL Tutorial, Creating an ATL Project

Inheritance Hierarchy

IOleObject

IOleObjectImpl

Requirements

Header: atlctl.h

See Also

Reference

CComControl Class

ActiveX Controls Interfaces

Other Resources

ATL Class Overview