CEikDialog draw 不执行的问题

xihongjian 2010-04-07 02:23:37
class CLoginDlg : public CEikDialog
{
public:
void Draw( const TRect& aRect ) const;
};




void CLoginDlg::Draw(const TRect&) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();

// Gets the control's extent
TRect drawRect( Rect());

// Clears the screen
gc.Clear( drawRect );

TRect rect = Rect();
rect.Shrink(10,10);
gc.DrawRect(rect);
}

调用窗口。。。
CEikDialog* iLoginDlg = new (ELeave)CLoginDlg((CHxSbSkinAppUi*)this);
iLoginDlg->ExecuteLD(R_LOGIN_DIALOG);

Draw 函数始终没执行 谁知道为什么???????
...全文
45 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,120

社区成员

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

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