本文整理汇总了C++中CGraphic::DrawText_Bold方法的典型用法代码示例。如果您正苦于以下问题:C++ CGraphic::DrawText_Bold方法的具体用法?C++ CGraphic::DrawText_Bold怎么用?C++ CGraphic::DrawText_Bold使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGraphic
的用法示例。
在下文中一共展示了CGraphic::DrawText_Bold方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoDraw
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));
}
}