FMX.Controls.Presentation.TPresentedControl.QueryInterface
Delphi
function QueryInterface(const IID: TGUID; out Obj): HRESULT; override; stdcall;
C++
virtual HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.Controls.Presentation.pas FMX.Controls.Presentation.hpp |
FMX.Controls.Presentation | TPresentedControl |
Description
Returns a reference to a specified interface if either your presented control or its presentation layer support that interface.
QueryInterface checks whether the component supports the interface specified by IID
and, if so, returns a reference to that interface as the Obj
parameter. If the component does not support the interface, the Obj
parameter returns nil.
QueryInterface returns the S_OK
execution code on success. See HResult for a list of all supported execution codes.