williamcampbell
asked on
CToolTip and CListCtrl
I am implementing tooltips for a CListCCtrl derived class
BOOL CMyListCtrl::OnToolTipText ( UINT id, NMHDR * pNMHDR, LRESULT * pResult )
{
TOOLTIPTEXTA* pTTTA = (TOOLTIPTEXTA*)pNMHDR;
TOOLTIPTEXTW* pTTTW = (TOOLTIPTEXTW*)pNMHDR;
CString strTipText;
UINT nID = pNMHDR->idFrom;
if( nID == 0 )// Notification in NT from automatically
return FALSE; // created tooltip
I have done everything I think but nID is always false
I do handle OnToolHitTest and set the id of the row by hittesting. I do call enable tootips in PreSubClassWindow.
Anyone know why nID would always be Zero?
BOOL CMyListCtrl::OnToolTipText
{
TOOLTIPTEXTA* pTTTA = (TOOLTIPTEXTA*)pNMHDR;
TOOLTIPTEXTW* pTTTW = (TOOLTIPTEXTW*)pNMHDR;
CString strTipText;
UINT nID = pNMHDR->idFrom;
if( nID == 0 )// Notification in NT from automatically
return FALSE; // created tooltip
I have done everything I think but nID is always false
I do handle OnToolHitTest and set the id of the row by hittesting. I do call enable tootips in PreSubClassWindow.
Anyone know why nID would always be Zero?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.