MFC的CListBox中怎么获取用户所点击条目的index

MFC的CListBox中如何获取用户所点击条目的index?
如题,MFC的CListBox中如何获取用户所点击条目的index?
我想让用户可以根据index随意操作CListBox中的条目。
------解决思路----------------------
仅供参考

int nCount = m_ctlListLeft.GetSelCount();
if (nCount > 0)
{
CArray<int,int> aryListBoxSel;
aryListBoxSel.SetSize(nCount);
m_ctlListLeft.GetSelItems(nCount, aryListBoxSel.GetData());
//禁止重绘
m_ctlListRight.SetRedraw(FALSE);
//添加
CString sss;
CString tmp;
tmp.Empty();
int n;
for (int i = aryListBoxSel.GetSize() - 1; i >= 0 ; i--)
{
n = aryListBoxSel.GetAt(i);
m_ctlListLeft.GetText(n, sss);
m_ctlListLeft.DeleteString(n);
m_ctlListRight.AddString(sss);
}
//重绘
m_ctlListRight.SetRedraw(TRUE);
m_ctlListRight.Invalidate();
}

------解决思路----------------------
添加点击事件消息处理,有个参数结构体,内有点击的index
------解决思路----------------------
可以给LISTBOX关联一个变量,根据变量的值进行相应的处理