16,548
社区成员




void CMylistCtrl::OnLButtonDown(UINT nFlags, CPoint point)
{
CListCtrl::OnLButtonDown(nFlags, point);
// TODO: Add your message handler code here and/or call default
LVHITTESTINFO hti;
hti.pt = point;
int Idx = HitTest(&hti);// or SubItemHitTest
if (Idx>=0)
{
if (hti.flags == LVHT_ONITEMSTATEICON)
{
BOOL chk=GetCheck(Idx);
afxDump << Idx << ";";
afxDump << chk << "\n";
}
}
}