1. E32Main()
->EikStart::RunApplication(NewApplication)
2.NewApplication()
->return new CMyApplication;
3. The framework call
->CMyApplication::CreateDocumentL();
->CMyDocument::NewL();
4.This function is called by the UI framework during application start-up
->CMyDocument::CreateAppUiL()
->return new(ELeave) CMyAppUi;
5. CMyAppUi::ConstructL() //create view and insert into control stack
->iAppView=CMyAppView::NewL(...);
AddToStackL(iAppView);
//CMyAppUi handle all kinds of message
6. CMyAppview::ConstructL()
->CreateWindowL();
->...
->ACtivateL(); //Sets the control as ready to be drawn.
->EikStart::RunApplication(NewApplication)
2.NewApplication()
->return new CMyApplication;
3. The framework call
->CMyApplication::CreateDocumentL();
->CMyDocument::NewL();
4.This function is called by the UI framework during application start-up
->CMyDocument::CreateAppUiL()
->return new(ELeave) CMyAppUi;
5. CMyAppUi::ConstructL() //create view and insert into control stack
->iAppView=CMyAppView::NewL(...);
AddToStackL(iAppView);
//CMyAppUi handle all kinds of message
6. CMyAppview::ConstructL()
->CreateWindowL();
->...
->ACtivateL(); //Sets the control as ready to be drawn.