Link to home
Start Free TrialLog in
Avatar of williamcampbell
williamcampbellFlag for United States of America

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?


 
ASKER CERTIFIED SOLUTION
Avatar of Roshan Davis
Roshan Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial