COleInsertDialog::GetSelectionType

UINTGetSelectionType()const;

Return Value

Type of selection made.

Remarks

Call this function to get the selection type chosen when the Insert Object dialog box was dismissed by choosing OK.

The return type values are specified by the Selection enumeration type declared in the COleInsertDialog class.

enum Selection
{
   createNewItem,
   insertFromFile,
   linkToFile
};

Brief descriptions of these values follow:

  • COleInsertDialog::createNewItem   The Create New radio button was selected.

  • COleInsertDialog::insertFromFile   The Create From File radio button was selected and the Link check box was not checked.

  • COleInsertDialog::linkToFile   The Create From File radio button was selected and the Link check box was checked.

COleInsertDialog OverviewClass MembersHierarchy Chart

See Also   COleInsertDialog::DoModal, COleInsertDialog::COleInsertDialog