Delen via


COleInsertDialog Class

Used for the OLE Insert Object dialog box.

class COleInsertDialog : public COleDialog

Members

Public Constructors

Name

Description

COleInsertDialog::COleInsertDialog

Constructs a COleInsertDialog object.

Public Methods

Name

Description

COleInsertDialog::CreateItem

Creates the item selected in the dialog box.

COleInsertDialog::DoModal

Displays the OLE Insert Object dialog box.

COleInsertDialog::GetClassID

Gets the CLSID associated with the chosen item.

COleInsertDialog::GetDrawAspect

Tells whether to draw the item as an icon.

COleInsertDialog::GetIconicMetafile

Gets a handle to the metafile associated with the iconic form of this item.

COleInsertDialog::GetPathName

Gets the full path to the file chosen in the dialog box.

COleInsertDialog::GetSelectionType

Gets the type of object selected.

Public Data Members

Name

Description

COleInsertDialog::m_io

A structure of type OLEUIINSERTOBJECT that controls the behavior of the dialog box.

Remarks

Create an object of class COleInsertDialog when you want to call this dialog box. After a COleInsertDialog object has been constructed, you can use the m_io structure to initialize the values or states of controls in the dialog box. The m_io structure is of type OLEUIINSERTOBJECT. For more information about using this dialog class, see the DoModal member function.

Note

Application Wizard-generated container code uses this class.

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

For more information regarding OLE-specific dialog boxes, see the article Dialog Boxes in OLE.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CDialog

CCommonDialog

COleDialog

COleInsertDialog

Requirements

Header: afxodlgs.h

See Also

Reference

COleDialog Class

Hierarchy Chart

COleDialog Class

Concepts

MFC Sample OCLIENT