Partager via


COleClientItem Members

Base Class Members

Creation

Status

Data Access

Object Conversion

Clipboard Operations

General Operations

Activation

Embedded Object Operations

Linked Object Operations and Status

Overridables

Base Class Members

CObject Members

CCmdTarget Members

CDocItem Members

Construction

COleClientItem

Constructs a COleClientItem object.

Creation

CanCreateFromData

Indicates whether a container application can create an embedded object.

CanCreateLinkFromData

Indicates whether a container application can create a linked object.

CreateCloneFrom

Creates a duplicate of an existing item.

CreateFromClipboard

Creates an embedded item from the Clipboard.

CreateFromData

Creates an embedded item from a data object.

CreateFromFile

Creates an embedded item from a file.

CreateLinkFromClipboard

Creates a linked item from the Clipboard.

CreateLinkFromData

Creates a linked item from a data object.

CreateLinkFromFile

Creates a linked item from a file.

CreateNewItem

Creates a new embedded item by launching the server application.

CreateStaticFromClipboard

Creates a static item from the Clipboard.

CreateStaticFromData

Creates a static item from a data object.

Status

GetActiveView

Gets the view on which the item is activated in place.

GetCachedExtent

Returns the bounds of the OLE item's rectangle.

GetClassID

Gets the present item's class ID.

GetDrawAspect

Gets the item's current view for rendering.

GetExtent

Returns the bounds of the OLE item's rectangle.

GetIconFromRegistry

Retrives a handle to an icon associated with the server of a particular CLSID.

GetIconicMetafile

Gets the metafile used for drawing the item's icon.

GetItemState

Gets the item's current state.

GetLastStatus

Returns the status of the last OLE operation.

GetType

Returns the type (embedded, linked, or static) of the OLE item.

GetUserType

Gets a string describing the item's type.

IsInPlaceActive

Returns TRUE if the item is in-place active.

IsModified

Returns TRUE if the item has been modified since it was last saved.

IsOpen

Returns TRUE if the item is currently open in the server application.

IsRunning

Returns TRUE if the item's server application is running.

SetDrawAspect

Sets the item's current view for rendering.

SetIconicMetafile

Caches the metafile used for drawing the item's icon.

Data Access

AttachDataObject

Accesses the data in the OLE object.

GetDocument

Returns the COleDocument object that contains the present item.

Object Conversion

ActivateAs

Activates the item as another type.

ConvertTo

Converts the item to another type.

Reload

Reloads the item after a call to ActivateAs.

Clipboard Operations

CanPaste

Indicates whether the Clipboard contains an embeddable or static OLE item.

CanPasteLink

Indicates whether the Clipboard contains a linkable OLE item.

CopyToClipboard

Copies the OLE item to the Clipboard.

DoDragDrop

Performs a drag-and-drop operation.

GetClipboardData

Gets the data that would be placed on the Clipboard by calling the CopyToClipboard member function.

General Operations

Close

Closes a link to a server but does not destroy the OLE item.

Delete

Deletes or closes the OLE item if it was a linked item.

Draw

Draws the OLE item.

Release

Releases the connection to an OLE linked item and closes it if it was open. Does not destroy the client item.

Run

Runs the application associated with the item.

SetPrintDevice

Sets the print-target device for this client item.

Activation

Activate

Opens the OLE item for an operation and then executes the specified verb.

Deactivate

Deactivates the item.

DeactivateUI

Restores the container application's user interface to its original state.

DoVerb

Executes the specified verb.

GetInPlaceWindow

Returns a pointer to the item's in-place editing window.

ReactivateAndUndo

Reactivates the item and undoes the last in-place editing operation.

SetItemRects

Sets the item's bounding rectangle.

Embedded Object Operations

SetExtent

Sets the bounding rectangle of the OLE item.

SetHostNames

Sets the names the server displays when editing the OLE item.

Linked Object Operations and Status

GetLinkUpdateOptions

Returns the update mode for a linked item (advanced feature).

IsLinkUpToDate

Returns TRUE if a linked item is up to date with its source document.

SetLinkUpdateOptions

Sets the update mode for a linked item (advanced feature).

UpdateLink

Updates the presentation cache of an item.

Overridables

CanActivate

Called by the framework to determine whether in-place activation is allowed.

OnActivate

Called by the framework to notify the item that it is activated.

OnActivateUI

Called by the framework to notify the item that it is activated and should show its user interface.

OnChange

Called when the server changes the OLE item. Implementation required.

OnChangeItemPosition

Called by the framework when an item's position changes.

OnDeactivate

Called by the framework when an item is deactivated.

OnDeactivateAndUndo

Called by the framework to undo after activation.

OnDeactivateUI

Called by the framework when the server has removed its in-place user interface.

OnDiscardUndoState

Called by the framework to discard the item's undo state information.

OnGetClipboardData

Called by the framework to get the data to be copied to the Clipboard.

OnGetClipRect

Called by the framework to get the item's clipping-rectangle coordinates.

OnGetItemPosition

Called by the framework to get the item's position relative to the view.

OnGetWindowContext

Called by the framework when an item is activated in place.

OnInsertMenus

Called by the framework to create a composite menu.

OnRemoveMenus

Called by the framework to remove the container's menus from a composite menu.

OnScrollBy

Called by the framework to scroll the item into view.

OnSetMenu

Called by the framework to install and remove a composite menu.

OnShowControlBars

Called by the framework to show and hide control bars.

OnShowItem

Called by the framework to display the OLE item.

OnUpdateFrameTitle

Called by the framework to update the frame window's title bar.

See Also

Concepts

COleClientItem Class

Hierarchy Chart