apollyon111897
asked on
ToolTips in a CWND?
I'm currently sending a SendMessage command
to the tooltip object I get from _AFX_THREAD_STATE
with a ti structure that points to a child window.
The SendMessage returns TRUE for TTM_ADDTOOL, but
I never get a TTN_NEEDTEXT message for anything
but the main window.
I am setting the lpszText field to LPSTR_TEXTCALLBACK;
(The main example I'm going off of is on page 623
of Charles Petzold's "Programming Windows 95."
Help,
Mike Eegz
eganm@segasoft.com
to the tooltip object I get from _AFX_THREAD_STATE
with a ti structure that points to a child window.
The SendMessage returns TRUE for TTM_ADDTOOL, but
I never get a TTN_NEEDTEXT message for anything
but the main window.
I am setting the lpszText field to LPSTR_TEXTCALLBACK;
(The main example I'm going off of is on page 623
of Charles Petzold's "Programming Windows 95."
Help,
Mike Eegz
eganm@segasoft.com
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Implement message handler for TTN_NEEDTEXTA and TTN_NEEDTEXTW. You can copy code from CFrameWnd class. Add corresponding string to string table.
ASKER
I'm not getting any NEEDTEXT messages when I leave my mouse
over any of the window's children.
Only the Window is giving a NEEDTEXT callback.
over any of the window's children.
Only the Window is giving a NEEDTEXT callback.
ASKER
What's an ent?
I'm not using a toolbar. That would make the problem trivial.
My problem is that I've got a CWND with a bunch of buttons, lists, etc. in it. I want to upgrade it by adding tooltips.
Thanks