?
Solved

ToolTips in a CWND?

Posted on 1997-11-18
4
Medium Priority
?
529 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:apollyon111897
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 200 total points
ID: 1310226
TTN_NEEDTEXT is ent to the tooltip owner window. If you work with a toolbar this message(actually TTN_NEEDTEXTA for ANSI and TTN_NEEDTEXTW for UNICODE) is sent to toolbar parent window
0
 

Author Comment

by:apollyon111897
ID: 1310227
2 clarifications:

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
0
 
LVL 7

Expert Comment

by:galkin
ID: 1310228
Implement message handler for TTN_NEEDTEXTA and TTN_NEEDTEXTW. You can copy code from CFrameWnd class. Add corresponding string to string table.
0
 

Author Comment

by:apollyon111897
ID: 1310229
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.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question