Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to disable TreeView "ToolTipText"

Posted on 2005-04-28
2
Medium Priority
?
293 Views
Last Modified: 2013-12-26
hello,

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 ?
0
Comment
Question by:sroz
2 Comments
 

Author Comment

by:sroz
ID: 13886012
I fogot : I work with vb6 and the question is How to disable (not diable) it ?
0
 
LVL 8

Accepted Solution

by:
List244 earned 1000 total points
ID: 13886708
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.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question