Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBox.Direct Property

Returns an ISftBoxVTable interface pointer.

Syntax

Get

VB.NETrefSftBoxVObj = object.Direct As ISftBoxVTable
VBSet refSftBoxVObj = object.Direct As SftBoxVTable
C#.NETISftBoxVTable refSftBoxVObj = object.Direct;
VC++ISftBoxVTable* refSftBoxVObj = object->Direct;
ISftBoxVTable* refSftBoxVObj = object->GetDirect();
CHRESULT object->get_Direct(ISftBoxVTable** refSftBoxVObj);

object

A SftBox object.

refSftBoxVObj

Returns an ISftBoxVTable interface pointer.

Comments

The Direct property returns an ISftBoxVTable interface pointer.

The ISftBoxVTable interface describes a SftBox object (i.e. the control itself). It is used in Visual Basic to insure that vtable binding is used. Visual Basic uses dispatch interface binding (early and late) when a SftBox object is used (i.e. the control). By retrieving the ISftBoxVTable interface, Visual Basic can use vtable binding which is significantly faster than any form of dispatch interface binding.

Any SftBox/OCX control that is used with Visual Basic should use the ISftBoxVTable interface if performance is important. Visual Basic uses vtable binding for all other SftBox objects (such as SftBoxItem, SftBoxDropDown, etc.). Visual Basic will however use dispatch interface binding for the control object (SftBox).

The ISftBoxVTable interface exposes all properties and methods that are supported by the SftBox object and is identical to the ISftBox interface.

Other languages (such as C++) can use the SftBox object directly and do not need to retrieve the ISftBoxVTable interface. The ISftBox interface which implements the SftBox object is a dual interface.

See Also SftBox Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.