How to show the hint text in a dialog?
-
Hi, everyone: I had a problem about how to show the hint text in a dialog just like what would happen when you move your mouse close to the button of a toolbar and wait for a moment. If the user put his/her mouse on a button for a moment, the hint text would show like that in the toolbar. Can somebody tell me what to do? Thanks!
-
Hi, everyone: I had a problem about how to show the hint text in a dialog just like what would happen when you move your mouse close to the button of a toolbar and wait for a moment. If the user put his/her mouse on a button for a moment, the hint text would show like that in the toolbar. Can somebody tell me what to do? Thanks!
Hi, Use the following code. It will work In Dialog's header add CToolTipCtrl tooltip; in Dialog's on initdialog add tooltip.Create(this,TTS_ALWAYSTIP); CWnd *pWnd = GetDlgItem(IDC_BUTTON_BC1); tooltip.AddTool(pWnd,"Hello Testing ",NULL,NULL); Add the PreTranslateMessage for the dialog and add the following code tooltip.RelayEvent(pMsg); Sujan
-
Hi, everyone: I had a problem about how to show the hint text in a dialog just like what would happen when you move your mouse close to the button of a toolbar and wait for a moment. If the user put his/her mouse on a button for a moment, the hint text would show like that in the toolbar. Can somebody tell me what to do? Thanks!
Have you looked at
EnableTooltips()
function and theTTN_NEEDTEXT
message.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow