Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

In some applications like Msword whenever you kept the mouse pointer on the menu icon it will show the functionality of that icon
for ex: if you kept mouse pointer on save icon it shows the comment as save ctrl+s.

I want to do the same in my application in vc++6.0 version.
can anyone help me please.


Thank u so much
Posted

This[^] can probably help you out.
 
Share this answer
 
The simple way is to use string table.Go to resource view -> string table and add a string with ID same as your icon(same as menu id) and give the text like tesxt1\ntext2
For example for save menu string will be,

ID_FILE_SAVE        57603           Save the active document\nSave(Ctrl+s)


"Save the active document", this text will be displayed in status bar if place the cursor on save menu item and "Save(Ctrl+s)" will be your icon tooltip(comment in your way)

One more method is go to menu editor open its properties and give the above(Save the active document\nSave(Ctrl+s)) text in prompt field.
 
Share this answer
 
Comments
Sergey Chepurin 15-Jun-11 5:55am    
If a person asks such a question (and calling "tooltip" a "comment"), 99% he/she uses VC++ Express and there is no MFC libraries (solution 1) and no resource editor (solution 2).
This is not an easy task using Windows API, but if you have no choice, then this MSDN article with samples may help: Using Tooltip Controls.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900