PRB: TreeView Control HitTest Method Returns Empty String (168060)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q168060 SYMPTOMS
The 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.
If disabling the ActiveX dual interface support is not desired, the
ISBLANK() function can be used in the TreeView HitTest method to return a
NULL value. For example, =IIF(ISBLANK(xHitTest),.NULL.,xHitTest). See the
More Information section below for an example of using this technique.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 8/13/1999 |
---|
Keywords: | KB168060 |
---|
|