Check the return value of
CListCtrl::SetItemText[
^]. If that is
FALSE
, check if you passed valid
nItem
(row) and
nSubItem
(column) parameters.
Assuming it is the first row and
Status is the 4th column it should be:
VERIFY(listCtrl.SetItemText(0, 3, _T("Completed")));
The
VERIFY
macro will raise an assertion in debug builds when the call returns
FALSE
and does nothing in release builds.
If the call succeeds there is no need to update the list because that will be done by the call if redrawing is not disabled. Or did you call
listCtrl.SetRedraw(FALSE)
before and forgot to re-enable redrawing?