void GetUserType( USERCLASSTYPE nUserClassType, CString& rString );
Parameters
nUserClassType
A value indicating the desired variant of the string describing the OLE item’s type. This can have one of the following values:
rString
A reference to a CString object to which the string describing the OLE item’s type is to be returned.
Remarks
Call this function to get the user-visible string describing the OLE item’s type, such as “Word document.” This is often the entry in the system registration database.
If the full type name is requested but not available, the short name is used instead. If no entry for the type of OLE item is found in the registration database, or if there are no user types registered for the type of OLE item, then the user type currently stored in the OLE item is used. If that user type name is an empty string, “Unknown Object” is used.
For more information, see IOleObject::GetUserType in the OLE documentation.
COleClientItem Overview | Class Members | Hierarchy Chart
See Also COleClientItem::GetType