void CBrowserPicWindow::DoDraw(CGraphic& aGraphic) const
{
	if(iFullScreenShow)
	{
		DrawBackground(aGraphic);

		aGraphic.DrawRect( iMainEngine.ScreenLayout().ScreenSize());

		if(NULL != iShowBmp)   
		{
			TRect rect(0,0,0,0);
			TRect rect1(0,0,0,0);
			
			CFbsBitGc& pGc = aGraphic.GetBmpGc();

			DrawImage(pGc,rect,rect1,1); 
		}
	}
	else
	{
		//iPicture->SetShowRect(iMainEngine.ScreenLayout().GetClientRect()); 
		//SetShowRect(iMainEngine.ScreenLayout().WhiteBackgroundRect()); 

		/*TInt nWidth = iMainEngine.ScreenLayout().Font()->MeasureText(ptr);

		aGraphic.SetPenColor(KBlackRgb);
		aGraphic.SetPenStyle(CFbsBitGc::ESolidPen);

		if(nWidth>iMainEngine.ScreenLayout().GetStatusPaneRect().iBr.iX/2)
			aGraphic.DrawText(TPoint(iMainEngine.ScreenLayout().GetStatusPaneRect().iBr.iX/2,15), ptr);
		else
			aGraphic.DrawText(TPoint(iMainEngine.ScreenLayout().GetStatusPaneRect().iBr.iX-nWidth,15), ptr);*/

		if(NULL != iShowBmp)   
		{
			TRect rect(0,0,0,0);
			TRect rect1(0,0,0,0);

			CFbsBitGc& pGc = aGraphic.GetBmpGc();
			DrawImage(pGc,rect,rect1,0); 
		}
	}

	//左右箭头提示翻页
	TRect nScreen;
	TPoint nLeft;
	TPoint nRight;

	if(iFullScreenShow)
		nScreen=iMainEngine.ScreenLayout().ScreenSize();
	else
		nScreen=iMainEngine.ScreenLayout().GetClientRect();

	nLeft.iX=0;
	nLeft.iY=nScreen.iTl.iY +(nScreen.iBr.iY-nScreen.iTl.iY)/2  ;

	TInt nWidth = iMainEngine.ScreenLayout().Font()->MeasureText(iMainEngine.GetDesById(ETurkeyTextRes_RightArrow));
	nRight.iX=nScreen.iBr.iX-nWidth+nScreen.iTl.iX  ;
	nRight.iY=nScreen.iTl.iY +(nScreen.iBr.iY-nScreen.iTl.iY)/2;

	if(iSelIndex==0 && iFileNameArray->Count()>1)
		aGraphic.DrawText_Bold(nRight, iMainEngine.GetDesById(ETurkeyTextRes_RightArrow));
	else if(iSelIndex==iFileNameArray->Count()-1 && iFileNameArray->Count()>1)
		aGraphic.DrawText_Bold(nLeft , iMainEngine.GetDesById(ETurkeyTextRes_LeftArrow));
	else if(iFileNameArray->Count()>1)
	{
		aGraphic.DrawText_Bold(nLeft, iMainEngine.GetDesById(ETurkeyTextRes_LeftArrow));
		aGraphic.DrawText_Bold(nRight , iMainEngine.GetDesById(ETurkeyTextRes_RightArrow));
	}
}