I am trying to change the text background colour in different rows in my app using CListCtrl, but if I change the first and then reset the rest of the rows to a default colour the first changes to match the default colour. I am using the code:


if (index == 0) {

ptr->SetTextBkColor(0x000000);
}
else
{
ptr->SetTextBkColor(0xffff00);
}




Does anybody know why the first index does not stay as the orignal colour?