Compartilhar via


COleInsertDialog::GetPathName

Call this function to get the full path of the selected file only if DoModal returns IDOK and the selection type is not COleInsertDialog::createNewItem.

CString GetPathName( ) const;

Return Value

The full path to the file selected in the dialog box. If the selection type is createNewItem, this function returns a meaningless CString in release mode or causes an assertion in debug mode.

Requirements

Header: afxodlgs.h

See Also

Reference

COleInsertDialog Class

Hierarchy Chart

COleInsertDialog::GetSelectionType

COleInsertDialog::DoModal