自定义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);
同样也先是不出来
请高手帮帮我
谢谢
...全文
78 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,120

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧