BUG: Node Tooltips Fail to Appear When TreeView Is Sited on UserControl (241102)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- Microsoft Visual Basic Learning Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- Microsoft Visual Basic Professional Edition for Windows 5.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- Microsoft Visual Basic Professional Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- Microsoft Visual Basic Enterprise Edition for Windows 5.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- Microsoft Visual Basic Enterprise Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
This article was previously published under Q241102 SYMPTOMS
A TreeView control from either Comctl32.ocx or Mscomctl.ocx is sited on a UserControl. The TreeView's Node tooltip (item tip) fails to appear when the mouse cursor is positioned over a Node whose text is obscured by the TreeView's right client window edge.
RESOLUTION
After the TreeView control is sited on the UserControl, remove the tooltips from the TreeView by setting its TVS_NOTOOLTIPS style bit. Then add tooltips back to the TreeView by removing the style bit. The tooltip window's parent window is now, correctly, the top level application window in which the UserControl is sited. This operation can be performed in either the UserControl's Show event, or after the Form's Load event, where you are certain that the TreeView control is sited on the UserControl.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information about TreeView tooltip issues, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
240924 BUG: TreeView Node Tooltips Flash When Displayed from Modal Form
241097 FIX: TreeView Tooltips Window Does Not Appear on Windows NT
Modification Type: | Minor | Last Reviewed: | 9/27/2004 |
---|
Keywords: | kbAPI kbBug kbCmnCtrls kbpending kbTreeView KB241102 |
---|
|