Disconnects the selected links.
HRESULT CancelLink(
DWORD dwLink |
//Unique 32-bit link identifier |
); |
Parameter
Return Values
E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:
Remarks
Call CancelLink when the user selects the Break Link button from the Links dialog box. The link should be converted to a picture. The Links dialog box will not be dismissed for OLE links.
For OLE links, OleCreateStaticFromData can be used to create a static picture object using the IDataObject interface of the link as the source.
See Also
IDataObject, OleCreateStaticFromData