Tooltips
Gary_Shank@dublin.sterling.com
Friday, April 21, 1995
> Hi All,
> I tried using CToolTipCtrl in the new msvc2.1 in win95 (build 431)
> but was not successful. in my initdialog, I do this :
> ttip.Create(this); //ttip is constructed in the dialog constructor
> ttip.AddTool(pWnd, IDS_STRING, (LPCRECT)rc, IDD_DIALOG1);
I've tried alot, if not all, combinations to try and get this thing to
work. At first, I thought the problem was that you were not calling
ttip.Activate(TRUE), but that was not the case. Then I tried many
combinations of options in the AddTool function to no avail. What
bothers me the most is that ToolTips, I thought, was only supposed to
be used for ToolBars, not just any control. Doesn't that go against
the design guide? To date, I've not seen any applications with
tooltips on anything other than a toolbar. With all the little
problems I've encountered, I'm a little gun-shy of MSVC 2.1 and I'm
hoping 2.2 will resolve alot of problems.
Gary_Shank@dublin.sterling.com
Sterling Software
Adrian_Glanvill@stockley-park.sterling.com
Friday, April 21, 1995
>> What bothers me the most is that ToolTips, I thought, was only
>> supposed to be used for ToolBars, not just any control. Doesn't
>> that go against the design guide? To date, I've not seen any
>> applications with tooltips on anything other than a toolbar.
According to some of the MS people at the recent Tech-ED Europe, you
can expect to see tooltips used with the tabs at the top of property
pages. You are right though, I haven't seen any apps that do this yet
either. It might be interesting to see if any of the applets that are
part of Windows 95 do.
Adrian_Glanvill@stockley-park.sterling.com
Sterling Software
Jim Tannenbaum -- jimt1@voicenet.com
Monday, September 16, 1996
Environment: VC++ 4.0, Win 95, NT 4.0
Hello All,
I am trying to help an off site coworker w/o 'net access, so please
forgive me if this sounds a little confused...
He wants to enable the TTN_ALWAYSTIP attribute of the default tool
tip mechanism for various controls in a dialog box. We both read the MSDN
Library documentation. It looks fairly straight forward to dynamically add
a control to the tool tip class and enable the attribute at that time.
However, he wants to be able to get the handle/hwnd of the tool tip class
and just add that attribute to it. He has used spy++ and discovered that
sometimes the tool tip is a child of his dialog box and sometimes it is a
sibling.
The TTN_ALWAYSTIP attribute enables the tool tip mechanism to
display a tool tip for a control, even if the window containing the control
is not active. This prevents him for waiting for a notify message from the
control (which would give him a pointer to it) and adding the attribute at
that time.
TIA,
Jet
JJM Systems, Inc Phone: (215) 672-3660
1 Ivybrook Blvd, Suite 190 Fax: (215) 672-5702
Ivyland, PA 19874 Net: jimt1@voicenet.com
A.E. Belgium -- aebelgium@arcadis.be
Friday, January 10, 1997
Environment: VC++ 4.0, Win 95
How to show a Tool tip when the mouse is on the Header Control of a ClistCtrl ( in fact a CListView ) in report view ?
Many thanks in advance.
Daniel
aebelgium@arcadis.be
| Вернуться в корень Архива
|