This has probably been asked many times before, but I was wondering if anybody could enlighten me as to which function can be used to assign a hint/tool-tip to anything on a dialog box.
Thank you.
This has probably been asked many times before, but I was wondering if anybody could enlighten me as to which function can be used to assign a hint/tool-tip to anything on a dialog box.
Thank you.
"I don't think there's anything else I can do... my shoes are tied"
There are several solutions. Read one of these articles.
Randy More's
http://www.codeproject.com/docking/d...g_tooltips.asp
http://www.codeguru.com/toolbar/disp...tooltips.shtml
Kuphryn
Thanks for your reply...
However, is there anything for Win32 C (C++ is icky) and is there a way to assign a tool-tip to something other than an item located in a toolbar? For example, a command button on a dialog, or a radiobutton.
"I don't think there's anything else I can do... my shoes are tied"
Good questions. I have never tried it. However, I know it is possible even if you end up having to create a temporary window with the tool-tips (for buttons, window, etc).
I remember John Swanke mentioned it in his book, but I have not absolutely sure. I do not have access to it right now.
Kuphryn
P.S. I recommend VC++ MFC Extensions by Example by John E. Swanke.
If using MSVC and the resource editor.
You can create a status bar, then under the menu items created in the resource editor there is a'prompt' edit. this text will be displayed in the 0 (first) cell of the status bar when the mouse is over the item.
You can add other contorls in your callback by tracking mouse moves and sending a SB_SETTEXT in SendMessage().
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Both of you: thank you ever so much!
I never thought of putting the text into a status bar before, but it seems an excellent solution and would probably be less annoying that hints popping up.
I'll be sure to mention your names in the program.![]()
"I don't think there's anything else I can do... my shoes are tied"