COleInsertDialog::CreateItem

Call this function to create an object of type COleClientItem only if DoModal returns IDOK.

BOOL CreateItem(
   COleClientItem* pItem 
);

Parameters

  • pItem
    Points to the item to be created.

Return Value

Nonzero if item was created; otherwise 0.

Remarks

You must allocate the COleClientItem object before you can call this function.

Requirements

Header: afxodlgs.h

See Also

Concepts

COleInsertDialog Class

COleInsertDialog Members

Hierarchy Chart

COleClientItem::CreateLinkFromFile

COleClientItem::CreateFromFile

COleClientItem::CreateNewItem

COleClientItem::SetDrawAspect

COleInsertDialog::GetSelectionType

COleInsertDialog::DoModal