15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Tooltips & CTreeCtrl

Roger M. -- RUNDEWOOD@cerner.com
Thursday, September 19, 1996

Environment: VC++ 4.0, Win 95

I'm developing an app under VC++ 4.0 with a CTreeCtrl on the main
window.  I've just recently noticed that when I add items to it that
cause a horizontal scrollbar to appear and I rest my cursor over the
long item, a tooltip appears.  I've never seen this functionality
before.  Does anyone know how to turn it on/off (there is no tree style
bit for tooltips).  I just recently installed IE 3.0.  Was a new
Comctl32.dll installed with this new functionality?  If so, does this
mean that I won't be able to turn the tooltips on/off until I upgrade
VC?

I like the tooltips, but the problem is that they don't always appear. 
They only seem to appear after clicking on a tree item, then moving
focus to another control, then resting my cursor over the long item.




Roger Onslow/Newcastle/Computer Systems Australia/
Monday, September 23, 1996

>I'm developing an app under VC++ 4.0 with a CTreeCtrl on the main
>window.  I've just recently noticed that when I add items to it that
>cause a horizontal scrollbar to appear and I rest my cursor over the
>long item, a tooltip appears.

It is part of new ComCtl32.dll.  I don't believe you can turn it off.  However, 
it should work fine and I don't believe you should worry about it as *all* 
applications that use a tree view (eg Windows Explorer) get this as well, so 
it's presense will be consistent accross applications.  If you turn it off, 
your users may wonder why and complain that they cannot see long items like 
they can in every other Windows 95 application.

>I like the tooltips, but the problem is that they don't always appear. 
>They only seem to appear after clicking on a tree item, then moving
>focus to another control, then resting my cursor over the long item.

Strange, they seem to work OK for me.  And they work OK in Explorer
Perhaps it is something to do with your active windows or focus.  I think it is 
a symptom of some other problem rather than a problem with the tooltips 
themselves.

Roger.



kellyw@mailgate.seer.com
Monday, September 23, 1996

     I've had problems with non-MFC, Win32 tooltips only appearing when you 
     actually clicked on the control.  The problem was attributed to 
     incremental linking.  After a full relink, the problem disappeared.  
     Maybe this is the same problem?


______________________________ Reply Separator _________________________________
Subject: Re: Tooltips & CTreeCtrl
Author:  mfc-l@netcom.com at mailgate
Date:    9/23/96 6:07 PM


>I'm developing an app under VC++ 4.0 with a CTreeCtrl on the main 
>window.  I've just recently noticed that when I add items to it that 
>cause a horizontal scrollbar to appear and I rest my cursor over the 
>long item, a tooltip appears.
     
It is part of new ComCtl32.dll.  I don't believe you can turn it off.  However, 
it should work fine and I don't believe you should worry about it as *all* 
applications that use a tree view (eg Windows Explorer) get this as well, so 
it's presense will be consistent accross applications.  If you turn it off, your
users may wonder why and complain that they cannot see long items like they can 
in every other Windows 95 application.
     
>I like the tooltips, but the problem is that they don't always appear. 
>They only seem to appear after clicking on a tree item, then moving 
>focus to another control, then resting my cursor over the long item.
     
Strange, they seem to work OK for me.  And they work OK in Explorer
Perhaps it is something to do with your active windows or focus.  I think it is 
a symptom of some other problem rather than a problem with the tooltips 
themselves.
     
Roger.





| Вернуться в корень Архива |