How to disable TreeView "ToolTipText"


I have a TreeView. Some node texts are longer than the TreeView width so when i move then mose on it, I can see the entire text in a sort of ToolTipText. I don't want to have it. Is that possible to diable ?
Who is Participating?
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal NINdex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal NINdex As Long) As Long
Private Const ToolTip = 128

Private Sub Form_Load()
SetWindowLong TreeView1.hwnd, -16, ToolTip Or GetWindowLong(TreeView1.hwnd, -16)
End Sub

That should disable it for you.
srozAuthor Commented:
I fogot : I work with vb6 and the question is How to disable (not diable) it ?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.