Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a big button and I have a tip for this button:
I wrote:

	m_tip.Create(this);

	m_tip.AddTool(GetDlgItem(IDC_BUTTON4), _T("Tooltip text"));
	m_tip.Activate(TRUE);

	

	m_btn1.InitDraw();

	
	

	return TRUE;

	
}


BOOL CMFCApplication22Dlg::PreTranslateMessage(MSG* pMsg)
{
	m_tip.RelayEvent(pMsg);
	return CDialog::PreTranslateMessage(pMsg);
}


now I want that the tip follow mouse when I move inside button, but I don't know how I must do

What I have tried:

I tried with code that I wrote but it doesn't work
Posted
Updated 3-Feb-20 6:00am

1 solution

According to your original question[^] you already solved this.
 
Share this answer
 
v2
Comments
Member 14594285 3-Feb-20 12:01pm    
yes, but I need to move tip inside button
Richard MacCutchan 3-Feb-20 12:03pm    
Then you will most likely need to write a lot of code. A Tooltip is just a popup window, and such windows get displayed at the point where they are called.

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