We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Tooltips in CView disabled after showing dialog

stevejobs
stevejobs asked
on
Medium Priority
661 Views
Last Modified: 2013-11-19
My tooltips in a CView window works fine if I don't invoke any (modal) dialog. If I display a dialog, then the tooltips don't show any more until another new CView is displayed. There was a similar known bug in MFC tooltip handling. How do I fix this problem? I tried EnableToolTips in CView again to no effect. [To emphasize: I am referring to the tooltips in the CView controls, not on the toolbar.]
Comment
Watch Question

Commented:
How do you do your tooltips in the view class?  Do you use EnableToolTips() ?

Commented:
Do you mean that tooltips work.  The you display a (modal) dialog and CLOSE it, and the tooltips no longer work after that?

Or are you saying that they do not work WHILE the modal dialog is displayed?

What version of MC do you have?  Do you havethe latest service packs (SP3?)

Author

Commented:
Yes, I use EnableTooltips() when creating the CView window.
Yes, the tooltips work so long as I don't open any dialog. Once a dialog is opened (any dialog) and then closed and I go back to the CView window, tooltips don't appear again.
No, I am not saying they don't work while the dialog is displayed. I believe the dialog code somehow disable tooltips and I tried to reenable in CView but it didn't help.

I have Visual Studio C++ 5.0 and latest SP 3.

Commented:
What happens if you click on the view (to ensure it is the active window)?

It could be that after your dialog closes, your view is not active (perhaps the frame is active instead).

Author

Commented:
I sure do click on the view. In fact, if I create a new view (this is an MDI app), the new view window will have tooltips active while the old one doesn't.

Commented:
hmmm .. let me dwell on that for a while.

Author

Commented:
I've just rechecked and can confirm that the 'activeness' of a view window doesn't affect the tooltips display. A view window can be inactive and still have tooltips. It seems the dialog (in my case) disables the tooltips of its parent and I just want to be able to reactivate the tooltip function in the view parent!!!
I know it's just one line of code, but where?

Commented:
Actually, I remember reading something about a similar problem (of tooltips not being reactiveated).  It is a bug in the code .. I'll try to track it down for you.

Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
Are you doing anything with tooltips in the modal dialog?  Maybe that is having a similar effect?

Author

Commented:
RONSLOW:
You are marvellous. I suspected it was only one line of code and I tried the EnableToolTips while I should use the Activate(TRUE) statement.
Thank you!!! Bug is fixed.

Commented:
>You are marvellous

Glad to have my opinion of myself backed up :-)

And glad to help you.

Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*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.