Hide

SftButton/OCX 3.0 - Button Control

Display
Print

Direct Property, SftButton Object

Returns an ISftButtonVTable interface pointer.

Syntax

Get

VB.NETrefSftButtonVObj = object.Direct As ISftButtonVTable
VBSet refSftButtonVObj = object.Direct As SftButtonVTable
C#.NETISftButtonVTable refSftButtonVObj = object.Direct;
VC++ISftButtonVTable* refSftButtonVObj = object->Direct;
ISftButtonVTable* refSftButtonVObj = object->GetDirect();
CHRESULT object->get_Direct(ISftButtonVTable** refSftButtonVObj);

object

A SftButton object.

refSftButtonVObj

Returns an ISftButtonVTable interface pointer.

Comments

The Direct property returns an ISftButtonVTable interface pointer.

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

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

The ISftButtonVTable interface exposes all properties and methods that are supported by the SftButton object.

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

See Also SftButton Object | Object Hierarchy


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