Hi
I try to create a small notification icon on the top and right part of a Series60 device (6600) , which means right next to the battery strength icon.
I use code that I got and modified from here :
http://developer.sonyericsson.com/si...mbian_0801.jsp

The 2 bmp's in the mbm files are:
1)a red circle with a white background.
2)the mask : a black circle with a white background.

The icon appears in the right place , but instead of just a red circle with transparent background , I get a red circle with a white background , and I dont want this backgeround to appear (that is why I use a mask).

Can you help me solve this problem please ??? (eliminate this white background ...)

Thanks a lot , TE

Code:
void CMyAppUi::ConstructL()
{
	RWsSession& session = CCoeEnv::Static()->WsSession();
	iFWinGroup = RWindowGroup(session);
	TInt res = iFWinGroup.Construct((TUint32)&iFWinGroup, EFalse);
	iFWinGroup.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront);
	CreateSpecialControl();
}

void CMyAppUi::CreateSpecialControl()
{
	if (!iVCuecontrol)
	{
		iVCuecontrol = new (ELeave) CCueControl();
		iVCuecontrol->ConstructL( ClientRect(), &iFWinGroup);
		AddToStackL( iVCuecontrol );
	}
}

void CCueControl::ConstructL(const TRect& aRect, RWindowGroup* aWindowGroup)
{
	TRect rc(aRect);
	TInt w = rc.Width();
	TInt h = rc.Height();
	CreateWindowL(aWindowGroup);
	for (TInt i = 0; i < 2; i++)
	{
		w /= 2;
		h /= 2;
	}
	TRect rc_new(w+108, h-25, w+121, h-12);//TRect rc_new(w+110, h-25, w+120, h-15);
    SetRect(rc_new);
    ActivateL();
	iBitmap = new(ELeave) CFbsBitmap; 
	iBitmapMask = new(ELeave) CFbsBitmap; 
	_LIT(KMBMname,"c:\\system\\apps\\myapp\\notification.mbm");
	iBitmap->Load(KMBMname,0,ETrue);
	iBitmapMask->Load(KMBMname,1,ETrue);
    ActivateL();
}
void CCueControl:: Draw(const TRect& aRect) const
{
	CWindowGc& gc=SystemGc(); // graphics context we draw to
	gc.SetPenStyle(CGraphicsContext::ENullPen);
	TRect bmpPieceRect=aRect; //Rect() a rectangle to define a piece of bitmap
	TSize bmpSizeInPixels=iBitmap->SizeInPixels();
	TSize bmpPieceSize(bmpSizeInPixels.iWidth,bmpSizeInPixels.iHeight);
	TPoint bmpPieceTopLeft(0,0);//(50,-30); 
	bmpPieceRect.SetRect(bmpPieceTopLeft,bmpPieceSize); 
	TPoint pos=	TPoint(0,0);
	gc.BitBltMasked(pos,iBitmap,bmpPieceRect,iBitmapMask,ETrue);
}