http://www.newlc.com/en/How-to-draw-an-Icon-on-the.html

My icon is circle shaped.
Mask is not working correctly. it takes background color as a mask.

code follows ...

void CIndicatorIcon::SetIndicatorIconL(TIndicatorIcon aIndicatorIconType,
TBool aRedraw)
{
AknIconUtils::CreateIconL(iIndicator, iIndicatorMask, KQuiteTalkFile,
EMbmbmp,
EMbmbmpmask);
SetRect(TRect(TPoint(KIndicatorPosX, KIndicatorPosY),iIndicator->SizeInPixels()));
DrawNow();
}

void CIndicatorIcon:raw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.SetBrushStyle(CGraphicsContext::ENullBrush);
gc.DrawRect(TRect(TPoint(0, 0),iIndicator->SizeInPixels()));
gc.BitBltMasked(TPoint(aRect.iTl.iX, aRect.iTl.iY), iIndicator, TRect(
TPoint(0, 0), iIndicator->SizeInPixels()), iIndicatorMask, EFalse);
}


How to solve this issue ?