void RkwDListCtrl::OnItemChangeEvent(NMHDR* pNMHDR, LRESULT* pResult) { LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR); if (pNMLV->uChanged == LVIF_STATE && flag) { UINT nOldCheck = pNMLV->uOldState & LVIS_STATEIMAGEMASK; UINT nNewCheck = pNMLV->uNewState & LVIS_STATEIMAGEMASK; if (nOldCheck && nNewCheck && nOldCheck != nNewCheck) { BOOL bCheck = this->GetCheck(pNMLV->iItem); if (bCheck) { this->SetItemText(pNMLV->iItem, 14, "1"); } else { this->SetItemText(pNMLV->iItem, 14, ""); } } } *pResult = 0; }
DeleteItem
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)