Click here to Skip to main content
16,019,976 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Is there a function to create a tip of a button? Or should I use derived class of button?

What I have tried:

I tried to search on the internet but I don't find what I searched, should I use "mousemove"?
Posted
Updated 30-Oct-23 11:59am
v4
Comments
Rick York 30-Oct-23 10:25am    
What is a tip of a cbutton?

There is no specific method in CButton Class | Microsoft Learn[^], so you most likely need a subclass, or use one of the notification messages.
 
Share this answer
 
Comments
Member 14594285 30-Oct-23 6:18am    
but Can I use "mouse move" like event?
Richard MacCutchan 30-Oct-23 6:49am    
You can use any event that sends a notification. So you need to review the documentation (see link above) to see which notification messages are posted by the button.
MFC has the CToolTipCtrl class which allows you to setup tooltips for the dialog controls view areas and so on, along with that you can enable or disable it, manually popups at specified point, setup hiding timeout and more.
 
Share this answer
 
https://www.codeproject.com/Articles/1911/CButton-with-icon

Note the changes in the comments of the article!
 
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