The information in this article applies to:
SYMPTOMSThe TreeView control that is contained within the COMCTL32.OCX, version 1.0.2908, returns NULL from the TreeView HitTest method when there is no Node at the specified coordinates. Version 5.00.3714 of the OCX returns an empty string in Visual FoxPro. RESOLUTION
The best resolution to this is to disable ActiveX dual interface (VTABLE
binding) support. Issue the =SYS(2333,0) command prior to the instantiation
of the TreeView control. After the control is instantiated, ActiveX dual
interface support can be turned back on if desired. See the SYS(2333)
Online Help topic in Visual FoxPro for more information. Microsoft
Technical Support has found that it is usually best to leave ActiveX dual
interface support disabled.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONComctl32.ocx, version 1.0.2908, returns NULL in the TreeView HitTest method when there is no Node at the specified coordinates. Version 5.00.3714 returns an empty string. In Visual Basic, both versions of the OCX return nothing (NULL). Visual FoxPro appears to be handling the return value differently. The behavior occurs in both Visual FoxPro 5.0 and Visual FoxPro 5.0a. The newest version of the OCX ships with Visual FoxPro 5.0a. The following code illustrates the behavior:
TYPE("xHitTest") should return "O" for object, because, according to the
Help file, the HitTest method returns an object reference. In the newest
version of the OCX and with ActiveX Dual Interface support enabled,
xHitTest will return a Character type ("C") with a value of blank or
"empty."
Additional query words:
Keywords : kbVFp kbVFp500 kbVFp500a kbVFp600 FxinteropOcx |
Last Reviewed: August 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |