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

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


CtoolTipCtrl multiline text

Jean FEVRE -- jeanf@afp.com
Friday, September 20, 1996

Environment: MSVC 4.2, NT 4.0

Is it possible to display multiline tooltip with MFC?
We need to add help when the mouse is over controls of all dialog box
of our project. It's not possible to use winhelp because the tooltip must
go without clicking!

regards=20
Jean
---------------------------------------------------------------------
Jean FEVRE                                      Email : jeanf@afp.com
Agence France Presse                         Compuserve : 100135,3025
13, place de la Bourse            web : http:/www.mygale.org/05/jeanf
75002 PARIS                            T=E9l=E9phone : (33 1) 40 41 46 23
FRANCE                                       Fax : (33 1) 40 41 49 99





Mike Blaszczak -- mikeblas@nwlink.com
Wednesday, September 25, 1996

At 18:20 9/20/96 +0200, "Jean F=E8vre"  wrote:
>Environment: MSVC 4.2, NT 4.0

>Is it possible to display multiline tooltip with MFC?

The Windows common tooltip control is implemented by Windows, not
by MFC.  If you want to know if the windows common tooltip control
can display multiline tips, the answer is: no, it can't.

If you want to know if it is possible to implement your own tooltips
with MFC that can display multiline tips, the answer is: yes, you can.

>We need to add help when the mouse is over controls of all dialog box
>of our project. It's not possible to use winhelp because the tooltip must
>go without clicking!

This is usually caused by the developer not writing code to reflect all
necessary messages to the tooltip control.  See the "tooltip controls"
overview in the Win32 SDK for example code that shows how to hook messages
sent to controls _before_ the controls get them and swallow them before
the dialog's window procedure gets them.

.B ekiM
http://www.nwlink.com/~mikeblas/
Don't look at my hands: look at my _shoulders_!
These words are my own. I do not speak on behalf of Microsoft.




Shanku Niyogi -- shanku@accent.net
Saturday, September 28, 1996

>From: Mike Blaszczak 
>To: mfc-l@netcom.com
>Subject: Re: CtoolTipCtrl multiline text
>Date: Thursday, September 26, 1996 12:20 AM
>
>At 18:20 9/20/96 +0200, "Jean F=E8vre"  wrote:
>>Environment: MSVC 4.2, NT 4.0
>
>>Is it possible to display multiline tooltip with MFC?
>
>The Windows common tooltip control is implemented by Windows, not
>by MFC.  If you want to know if the windows common tooltip control
>can display multiline tips, the answer is: no, it can't.

A piece of good news though - the Windows common tooltip control will
have this functionality in the IE 4.0 update...actually, it has this
feature already if you have installed IE 3.0, but the current version
of this DLL is not redistributable.

Multi-line functionality is added to this new version through the use
of custom draw, a new feature on many of the common controls. Check out
the October MSJ for details.

Regards,

Shanku

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Shanku S. Niyogi                                                     =20
shanku@accent.net
Etobicoke, Ontario, Canada





Mike Blaszczak -- mikeblas@nwlink.com
Monday, September 30, 1996

At 14:08 9/28/96 -0400, "Shanku Niyogi"  wrote:

>A piece of good news though - the Windows common tooltip control will
>have this functionality in the IE 4.0 update...actually, it has this
>feature already if you have installed IE 3.0, but the current version
>of this DLL is not redistributable.

>Multi-line functionality is added to this new version through the use
>of custom draw, a new feature on many of the common controls. Check out
>the October MSJ for details.

This DLL hasn't shipped: it's in beta.  Until iti s actually released,
speculation about its features is really just that: speculation.

.B ekiM
http://www.nwlink.com/~mikeblas/
Don't look at my hands: look at my _shoulders_!
These words are my own. I do not speak on behalf of Microsoft.





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