virtual int DoModal( );
int DoModal( DWORD dwFlags );
Return Value
Completion status for the dialog box. One of the following values:
Parameters
dwFlags
One of the following values:
COleInsertDialog::DocObjectOnly will insert only DocObjects.
COleInsertDialog::ControlsOnly will insert only ActiveX controls.
If zero, DoModal will insert neither a DocObject or an ActiveX control; it results in the same implementation as the first prototype listed above.
Remarks
Call this function to display the OLE Insert Object dialog box.
If you want to initialize the various dialog box controls by setting members of the m_io structure, you should do this before calling DoModal, but after the dialog object is constructed.
If DoModal returns IDOK, you can call other member functions to retrieve the settings or information input into the dialog box by the user.
COleInsertDialog Overview | Class Members | Hierarchy Chart
See Also COleDialog::GetLastError, CDialog::DoModal, COleInsertDialog::GetSelectionType, COleInsertDialog::GetClassID, COleInsertDialog::GetDrawAspect, COleInsertDialog::GetIconicMetafile, COleInsertDialog::GetPathName, COleInsertDialog::m_io