Udostępnij za pośrednictwem


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

Reference

COleInsertDialog Class

Hierarchy Chart

COleInsertDialog::DoModal

COleInsertDialog::COleInsertDialog

Other Resources

COleInsertDialog Members