|
void CStudentManageView::OnClickLISTBaseInfo(NMHDR* pNMHDR, LRESULT* pResult)
{
//When clicking, select a row
::SendMessage(m_listBaseInfo.m_hWnd, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT);
//Display student achievement information of the selected row
POSITION pos = m_listBaseInfo.GetFirstSelectedItemPosition();
if(pos == NULL)
{
MessageBox("No Item is Selected");
}
else
{
while (pos)
{
int nItem = m_listBaseInfo.GetNextSelectedItem(pos);
}
}
int a = m_listBaseInfo.GetSelectionMark();
*pResult = 0;
}
No matter which row I click, it returns 0x00000, which is NULL. I don't know what happened? I am a novice, thanks |
|