CRichEditCntrItem::CRichEditCntrItem

Call this function to create a CRichEditCntrItem object and add it to the container document.

CRichEditCntrItem(
   REOBJECT* preo = NULL,
   CRichEditDoc* pContainer = NULL 
);

Parameters

  • preo
    Pointer to an REOBJECT structure which describes an OLE item. The new CRichEditCntrItem object is constructed around this OLE item. If preo is NULL, the client item is empty.

  • pContainer
    Pointer to the container document that will contain this item. If pContainer is NULL, you must explicitly call COleDocument::AddItem to add this client item to a document.

Remarks

This function does not perform any OLE initialization.

For more information, see the REOBJECT structure in the Windows SDK.

Requirements

Header: afxrich.h

See Also

Reference

CRichEditCntrItem Class

Hierarchy Chart

COleDocument::AddItem

CRichEditDoc Class

Other Resources

CRichEditCntrItem Members