Vance Kessler
asked on
Tool Tips for windows in a CToolbar
I have an application that uses SetButtonInfo() to add buttons to the end of a CToolbar. I then create owner drawn buttons (sub-classed off CButton) as child windows of that toolbar.
The problem is that the tool tips aren't being displayed for these new buttons. This worked perfectly in versions prior to Visual C++ 5.0. I simply overrode OnNotify() and looked for the TTN_NEEDTEXT message (in my sub-class of CToolBar). But now, I don't get this message for my new buttons.
Oh, another thing is that I need to provide the text for the tool tips dynamically, as they depend on user input (they can't come from the resource file).
The problem is that the tool tips aren't being displayed for these new buttons. This worked perfectly in versions prior to Visual C++ 5.0. I simply overrode OnNotify() and looked for the TTN_NEEDTEXT message (in my sub-class of CToolBar). But now, I don't get this message for my new buttons.
Oh, another thing is that I need to provide the text for the tool tips dynamically, as they depend on user input (they can't come from the resource file).
ASKER
Yes, they all have IDs and are enabled. As I said earlier they worked perfectly before Visual C++ 5.0 came out. Now the only thing that doesn't work are the tool tips.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, That is just what I needed.
Hi! If my answer is good enough for you, then I would appriciate if you would accept answer and award points
Are they enabled/active?