IRichEditOle::ActivateAs method (richole.h)
Handles Activate As behavior by unloading all objects of the old class, telling OLE to treat those objects as objects of the new class, and reloading the objects. If objects cannot be reloaded, they are deleted.
Syntax
HRESULT ActivateAs(
REFCLSID rclsid,
REFCLSID rclsidAs
);
Parameters
rclsid
Type: REFCLSID
Class identifier of the old class.
rclsidAs
Type: REFCLSID
Class identifier of the new class.
Return value
Type: HRESULT
Returns S_OK on success, or a failure code otherwise.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | richole.h |
DLL | Msftedit.dll |