r = __pForm->Construct(FORM_STYLE_NORMAL);
TryCatch(!IsFailed(r), delete __pForm, "__pForm->Construct(FORM_STYLE_NORMAL) failed.");
- r = GetAppFrame()->GetFrame()->AddControl(*__pForm);
- TryCatch(!IsFailed(r), delete __pForm, "GetAppFrame()->GetFrame()->AddControl(*__pForm) failed.");
+ r = GetAppFrame()->GetFrame()->AddControl(__pForm);
+ TryCatch(!IsFailed(r), delete __pForm, "GetAppFrame()->GetFrame()->AddControl(__pForm) failed.");
TryCatch(InitEGL(), , "InitEGL() failed.");
TryCatch(!IsFailed(r), , "__pTimer->Construct(*this) failed.");
// Comment the following statement to stop listen to the screen on/off events.
- PowerManager::SetScreenEventListener(*this);
+ PowerManager::AddScreenEventListener(*this);
return true;