共用方式為


COleInsertDialog::GetClassID

Call this function to get the CLSID associated with the selected item only if DoModal returns IDOK and the selection type is COleInsertDialog::createNewItem.

REFCLSID GetClassID( ) const; 

Return Value

Returns the CLSID associated with the selected item.

Remarks

For more information, see CLSID Key in the Windows SDK.

Requirements

Header: afxodlgs.h

See Also

Concepts

COleInsertDialog Class

COleInsertDialog Members

Hierarchy Chart

COleInsertDialog::DoModal

COleInsertDialog::GetSelectionType