Vcl.OleCtnrs.TCreateInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TCreateInfo = record
    CreateType: TCreateType;
    ShowAsIcon: Boolean;
    IconMetaPict: HGlobal;
    ClassID: TCLSID;
    FileName: WideString;
    DataObject: IDataObject;
  end;

C++

struct DECLSPEC_DRECORD TCreateInfo
{
public:
    TCreateType CreateType;
    bool ShowAsIcon;
    NativeUInt IconMetaPict;
    GUID ClassID;
    System::WideString FileName;
    _di_IDataObject DataObject;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
Vcl.OleCtnrs.pas
Vcl.OleCtnrs.hpp
Vcl.OleCtnrs Vcl.OleCtnrs

Description

TCreateInfo is used by TOleContainer's CreateObjectFromInfo method.

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.



See Also