IRichEditOle::ActivateAs method

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

IRichEditOle

 

 

Community Additions

ADD
Show:
© 2014 Microsoft