TCreateInfo is used by TOleContainer's CreateObjectFromInfo method.
TCreateInfo = record CreateType: TCreateType; ShowAsIcon: Boolean; IconMetaPict: HGlobal; ClassID: TCLSID; FileName: WideString; DataObject: IDataObject; end;
struct TCreateInfo { TCreateType CreateType; Boolean ShowAsIcon; HGlobal IconMetaPict; TCLSID ClassID; BSTR FileName; IDataObject DataObject; };
TCreateInfo represents how TOleContainer's CreateObjectFromInfo method should instantiate an OLE object. TCreateInfo's fields are described in the following table:
Fields |
Meaning |
CreateType |
Describes the source of the object. See TCreateType for details. |
ShowAsIcon |
Indicates whether the object is shown as an icon (true) or displayed as it would be in the server application (false). |
IconMetaPict |
Specifies a global memory handle to a metafile picture (TMetaFilePict) to display in place of the OLE object's default icon. IconMetaPict is optional; When set to 0, the object's default icon is used (when ShowAsIcon is true). |
ClassID |
The class identifier of the OLE object to create. ClassID is only used when CreateType is ctNewObject. You can use the ProgIDToClassID function to get the class identifier for an OLE object's class name (or programmatic identifier). |
FileName |
The name of a file to link or embed as an OLE object. FileName is only used when CreateType is ctFromFile or ctLinkToFile. |
DataObject |
An OLE data transfer object. DataObject is only used when CreateType is ctFromData or ctLinkFromData. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|