BTW, you could use MFC class CToolTipCtrl (or CMFCToolTipCtrl) and its methods like CToolTipCtrl::AddTool, CToolTipCtrl::SetToolRect rather than directly sending TTM_... messages.
See https://docs.microsoft.com/en-us/cpp...s?view=vs-2019