CListCtrl at MFC

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello!

i've tried to get column clicked id using sever methods of CListCtrl. This
is one of the way i tried:

void CCallDataDialog::OnLvnColumnclickCallList(NMHDR *pNMHDR, LRESULT
*pResult)
{
LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
// TODO: Add your control notification handler code here
//UINT colIndex = m_ctrlCalls.GetSelectedColumn (); //prej neni member :)

UINT colIndex = pNMLV->hdr.idFrom;
}
but it returns any column clicked the same id. Does anybody know how to get
this column clicked id properly? thanks a lot.

happy codding buddy
 
Back
Top