We help IT Professionals succeed at work.

tooltips in CView

mguedes
mguedes asked
on
Medium Priority
485 Views
Last Modified: 2013-11-19
I want display tooltips in drawing objects and i don´t no when i have to override the OnToolHitTest and define the handler for the TTN_NEEDTEXT notification from the tooltip because in my CView derived class it those not match(the documentation say that the TTN_NEEDTEXT notification message will be send to the parent window to retrieve the text, what's the parent window of my CView).

Can anyone help me!!????
Comment
Watch Question

Author

Commented:
Edited text of question

Commented:
Documentation says:
This notification message is sent to the window specified in the hwnd member of the TOOLINFO structure for the tool. This notification is sent only if the LPSTR_TEXTCALLBACK value is specified when the tool is added to a ToolTip control.
Commented:
I have source code that I can send to you for doing tooltip in a view for drawing objects.

Please post your e-mail address.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
My email address is mguedes@utad.pt. thank you RONSLOW for your answer. :>

Commented:
I'll send you some code ASAP.. look out for it in your e-mail inbox !!

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.