Hello everyone

In my application I have view which contains CAknDoubleStyleListBox. I'm working in Carbide and I use its UI Designer to create views.

I can easily manage item on the list, for instance adding, aediting, deleting. What I would like to do know I want to make text colour different for each item. I read a little bit in internet and I found out that to do so I need something called ItemDrawer. So I created class:
#include <eiklbi.h>
class CMyItemDrawer : public CListItemDrawer
{
public:
CMyItemDrawer(CAknDoubleStyleListBox* aListBox);

virtual ~CFlexItemDrawer();

private: // CListItemDrawer
virtual void DrawActualItem(TInt aItemIndex, const TRect& aActualItemRect,TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed,TBool aItemIsSelected) const;

private:
CAknDoubleStyleListBox* iListBox;
};

This is how I overwrite DrawActualItem method:

CMyItemDrawer::CMyItemDrawer(CAknDoubleStyleListBox* aListBox):
CListItemDrawer(), iListBox(aListBox)
{
// Store a GC for later use
iGc = &CCoeEnv::Static()->SystemGc();
SetGc(iGc);
}

void CMyItemDrawer:rawActualItem(TInt aItemIndex, const TRect& aActualItemRect,TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed,TBool aItemIsSelected) const
{
// Sets all the attributes, like font, text color and background //color.
const CFont* font = CEikonEnv::Static()->NormalFont();
iGc->UseFont(font);
iGc->SetPenColor(/*iTextColor*/KRgbWhite);
iGc->SetPenStyle(CGraphicsContext::ESolidPen);
iGc->SetBrushColor(/*iBackColor*/KRgbYellow);
iGc->SetBrushStyle(CGraphicsContext::ESolidBrush);

// Draws the item text.
TPtrC itemText = iListBox->Model()->ItemText(aItemIndex);
TInt baseline = (aActualItemRect.Height() - font->HeightInPixels()) / 2 + font->AscentInPixels();
iGc->DrawText(itemText, aActualItemRect, baseline);
}


After this I added CreatItemDrawerL method in my list's container:

void CMainScreen::CreateItemDrawerL()
{
iItemDrawer = new (ELeave) MyItemDrawer::CMytemDrawer(iListBox);
}

But after that I don't know what to do further. And I am sure there is something more, cause I haven't seen colour change on my list box.

Please help me out here.
Best Regards
songoku