Skip to content

SetDisplayParent

function

Delphi
function SetDisplayParent (DisplayIndex: LongInt; DisplayParent: TWinControl): Boolean;
C++Builder
bool __fastcall SetDisplayParent(System::LongInt DisplayIndex, Vcl::Controls::TWinControl* DisplayParent);
C#
public bool SetDisplayParent(int DisplayIndex, int DisplayParent);
VB.NET
Public Function SetDisplayParent(DisplayIndex As Integer, DisplayParent As Integer) As Boolean
C++/Qt
BOOL SetDisplayParent (int DisplayIndex, int DisplayParent);

Sets the parent of the video window specified by DisplayIndex. DisplayParent is the new parent: a TWinControl in Delphi and C++Builder, a window handle (HWND) in the other versions.

DisplayIndex must be in the 2..8 range (0..1 reserved for Display... and DualDisplay...).

Returns true if the parent is set, false if DisplayIndex is not valid.