Freigeben über


COleInsertDialog::GetSelectionType

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

UINT GetSelectionType( ) const;

Return Value

Type of selection made.

Remarks

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.

Requirements

Header: afxodlgs.h

See Also

Concepts

COleInsertDialog Class

COleInsertDialog Members

Hierarchy Chart

COleInsertDialog::DoModal

COleInsertDialog::COleInsertDialog