|
|
|
SftBox.Direct Property |
Returns an ISftBoxVTable interface pointer.
Syntax
VB.NET |
refSftBoxVObj = object.Direct As ISftBoxVTable |
||
VB |
Set refSftBoxVObj = object.Direct As SftBoxVTable |
||
C#.NET |
ISftBoxVTable refSftBoxVObj = object.Direct; |
||
VC++ |
ISftBoxVTable* refSftBoxVObj = object->Direct;
|
||
C |
HRESULT object->get_Direct(ISftBoxVTable** refSftBoxVObj); |
||
Delphi |
refSftBoxVObj := object.Direct : ISftBoxVTable; |
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.