CListCtrl判断ItemSelectChanged

void CGroupFormatBar::OnLvnItemchangedList(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
if ((pNMLV->uChanged & LVIF_STATE) && (pNMLV->uNewState & LVIS_SELECTED)) 
{
// select changed
}

*pResult = 0;
}

posted @ 2010-08-09 17:34  Terry Wang  阅读(1200)  评论(0编辑  收藏  举报