Specifies how often a linked object should update its cached data.
HRESULT SetUpdateOptions(
DWORD dwUpdateOpt //Update option
);
This method supports the standard return value E_INVALIDARG, as well as the following:
Your container application should call IOleLink::SetUpdateOptions when the end user changes the update option for a linked object.
The end user selects the update option for a linked object using the Links dialog box. If you use the OleUIEditLinks function to display this dialog box, you must implement the IOleUILinkContainer interface. The dialog box calls your IOleUILinkContainer::SetLinkUpdateOptions method to specify the update option chosen by the end user. Your implementation of this method should call the IOleLink::SetUpdateOptions method to pass the selected option to the linked object.
The default update option is OLEUDPATE_ALWAYS. The linked object's implementation of IPersistStorage::Save saves the current update option.
If OLEUDPATE_ALWAYS is specified as the update option, the linked object updates the link's caches in the following situations:
For both manual and automatic links, the linked object updates the cache whenever the container application calls IOleObject::Update or IOleLink::Update.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.
IOleObject::Update, IOleLink::GetUpdateOptions, IOleLink::Update, IOleUILinkContainer, OleUIEditLinks