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

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


Tool tip in VC1.52

Sanu M.P -- sanump@hcla.com
Tuesday, April 09, 1996

Hi,

  Environment : VC 1.52, MFC 2.52 AND Windows 3.1

  I want to implement tooltip for the above.
Any ideas greatly welcome. Anyone has done this before ?

Thanks,
Sanu.
sanump@hcla.com




Marcus -- bmarcus@erols.com
Thursday, April 11, 1996

[Mini-digest: 12 responses]

Sanu M.P wrote:
> 
> Hi,
> 
>   Environment : VC 1.52, MFC 2.52 AND Windows 3.1
> 
>   I want to implement tooltip for the above.
> Any ideas greatly welcome. Anyone has done this before ?
> 
> Thanks,
> Sanu.
> sanump@hcla.com

I've used the TOOLBARX classes on the MSDN example titled "TOOLTIPS:Adds Tooltips to MFX 2.X 
Applications". It worked well for me.


Brad Marcus
bmarcus@erols.com
-----From: Michael Kilgore 

Yes, it is possible to add tooltips in VC 1.51.  There is a library, 
source code included that has been provided by Ken Walters, Tom Serface, 
Bob Cozzi.  I found the zip file in the book Visual C++ Power Toolkit by 
Richard Leinecker and Jamie Nye although it is probably available in 
other places.  This code should give you everything you need.

Hope this helps,

Mike Kilgore
-----From: Chong Zhang 

There is a public domain package produced by Mr. Todd Osborne 
(Toddos@aol.com).

-----From: Christophe Nasarre 

I have found a sample of tooltip implementation in MSDN
"Sample Code\Technical Article Samples\C++ Samples\TOOLTIPS"
It is a SCRIBBLE extension to handle tooltips on toolbars
and even on added control in toolbar.

Good luck

   -- a poor lonely frenchie --


-----From: IAND@wcom.co.uk


Take a look at the article entitled 'Extending MFC's Toolbars' by David Rud=
e=20
on the MSDN CD. It describes how to add tooltips to the CToolBar class.

-----From: "Kim, In-Dae" 

Please, search keyword "TOOLBARX" in MSDN CD.
The subject's title is "TOOLTIPS: Adds ToolTips to MFC 2.x Applications".

-----From: Don.Irvine@net-tel.co.uk

Look at the technical article "Extending MFC's Toolbars" on the MSDN. This
shows how to add tooltips to the MFC CToolBar.


Don
-----From: "Steven Perry" 

There is a good tooltip sample on the developer network CD.  It works very 
well and is easy to implement.  Look for TOOLTIP.  If you don't have MSDNCD I 
would be happy to send it to you, as long as I'm not breaking any agreements 
with MS.

Steven Perry.......

-----From: Lee Thompson 

Hi,

I have a ToolTipb class with examples that is easy to implement.  A few 
changes to mainframe.cpp and tooltips appear, using the descriptions 
from the corresponding menu items.  I no longer know where I downloaded 
it from, I've had it a long time, but it is public domain, freely 
redistributable and has the e-mail address of the author.  I would be 
happy to send you the self extracting file (96Kb) as an e-mail 
attachment, or upload it for everyone.  If only I could remember where 
to upload stuff to....

Lee Thompson
-----From: asolberg@mycrowynn.com

Here is a library that I used.  I like it a lot more than
the example one from the Developer's Net.

I forget where I got the file from but you can always try
to search CI$ for TTIPS2.ZIP.

It is a class called CToolTipBar.

Here is a portion of the readme file:

Tool Tips Toolbar Help LIbraray
*****************************************
*   PLEASE READ CAREFULLY   *
*****************************************
Copyright (C) Ken Walters, Tom Serface, Bob Cozzi.
All Rights Reserved.

There are almost no restrictions for using this source code.  You may
use this code in any of your applications or pass it along to anyone
else that may need this functionality.  The only rule for using this
code or any derivative of it, is that it must remain FREEWARE.  All of
us who have worked on this project think that CompuServe is a great
place to exchange ideas and learn how to do things that we would
otherwise have trouble figuring out.  Everyone should give back; at
least a little.  Therefore we are giving this.  Please do not take
credit and/or remuneration for what has been provided as FREEWARE. 
You can, of course, use this code in any commercial or personal
application.  Since the code is FREEWARE, you may even include it in
'source code sales' as long as this source code does not represent
more than ten percent (10%) of the entire project.
-----From: "Tom Serface" 

I (and a couple of others) wrote a class that is a replacement (supplement) to 
the CToolBar class in MFC 1.52.  It is called CToolTipBar.  You can get it on 
CIS in the MSMFC forum.  It is called TTIPS3.ZIP.  Hope this helps you out.

Tom

-----From: jpek@emeraldi.com (Jeff Pek)

Microsoft has posted tooltip support for VC1.52. The question is (as
usual)... Now where did I see that?  :) It seems like it was called
tooltip.zip, and it was either on ftp.microsoft.com, or in MSMFC on
CompuServe. Or was it MSDN?  Anyway, I'm sure a simple KB search on tooltip
will dislodge it from its hiding place.

It's a fairly transparent impelementation, essentially overriding CToolbar.

Good luck!

Jeff Pek
Emerald Intelligence





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