自定义CAknQueryDialog后提示字符显示不出
pcyy 2010-07-12 12:52:31 draw函数如下:
void CMyQueryDlg::Draw( const TRect& aRect) const
{ // Get the standard graphics context
RLog::Log(_L("CMyQueryDlg enter 6"));
CWindowGc& gc = SystemGc();
AknsDrawUtils::Background(AknsUtils::SkinInstance(),
AknsDrawUtils::ControlContext(this),
this,
gc,
aRect);
#if 0
gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
gc.SetBrushColor( KRgbGray);
// Clear screen
gc.Clear(Rect());
gc.SetBrushStyle( CGraphicsContext::ENullBrush );
// Draw round rect gc.SetPenStyle( CGraphicsContext::ESolidPen );
#endif
const CFont* fontUsed = CEikonEnv::Static()->DenseFont();
gc.UseFont(fontUsed);
gc.SetPenColor(KRgbDarkBlue);
gc.SetPenStyle( CGraphicsContext::ESolidPen);//CGraphicsContext::ENullPen
TPoint pt = aRect.iTl;
// gc.DrawRect(Rect());
gc.DrawText(_L("test text"),pt);
// TODO: Implement what you need
RLog::Log(_L("CMyQueryDlg exit 6"));
}
在调用的地方
dlg->SetPromptL(prompt);
同样也先是不出来
请高手帮帮我
谢谢