why CAknDialog::Draw cannot draw
Login to reply to this topic.
Tue, 2007-04-17 09:48
Joined: 2007-02-05
Forum posts: 17
here my custom dialog
class CMyDialog: public CAknDialog{
void  Draw(const TRect &aRect) const;
};
void CMyDialog::Draw(const TRect &aRect) const
{
   CWindowGc& gc=SystemGc();
   gc.DrawLine(TPoint(0,0),TPoint(20,20));
   gc.UseFont(iEikonEnv->TitleFont());
   gc.DrawText(_L("abc"),TPoint(10,10));
}
after Draw() is runned,line and text still not appear on dialog
can anyone help me?

Tue, 2007-04-17 10:04
Joined: 2003-01-14
Forum posts: 2133
Have you set a size to your dialog and activated it ?

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Tue, 2007-04-17 10:40
Joined: 2007-02-05
Forum posts: 17
already set,dialog's Border is showing

copyright 2003-2009 NewLC SARL