CListCtrl::HitTest
int HitTest( LVHITTESTINFO* pHitTestInfo ) const;
Example
CPoint myPoint;// Select the item the user clicked on.
UINT uFlags;
int nItem = myListCtrl.HitTest(myPoint, &uFlags);if (uFlags & LVHT_ONITEMLABEL)
{
   do something…
}我只是把pmyListCtrl->HitTest(myPoint, &uFlags);改了一下啊!每次返回-1不知为什么!?
还有啊!~这些标识我也不太明白!~
LVHT_ABOVE  The position is above the control's client area.
LVHT_BELOW  The position is below the control's client area.
LVHT_NOWHERE  The position is inside the list view control's client window, but it is not over a list item.
LVHT_ONITEMICON  The position is over a list view item's icon.
LVHT_ONITEMLABEL The position is over a list view item's text.
LVHT_ONITEMSTATEICON The position is over the state image of a list view item.
LVHT_TOLEFT  The position is to the left of the list view control's client area.
LVHT_TORIGHT  The position is to the right of the list view control's client area.有劳各位了!~