开发者

How to switch to another local view from CCoeControl object in Symbian

开发者 https://www.devze.com 2023-03-05 19:23 出处:网络
My GUI application has two views, First view has a ListBox control - Derived from CCoeControl - and from this object I want to switch to the second view, How can I do this ?

My GUI application has two views, First view has a ListBox control - Derived from CCoeControl - and from this object I want to switch to the second view, How can I do this ?

In other words, When user click ListBox Item ...the second 开发者_StackOverflow中文版view appears.


Assuming that your 'views' are derived from CAknView. Code From this link

const TUid KDemo1ViewId = { 1 }; // UID of the first view
AppUI()->ActivateLocalViewL(KDemo1ViewId); // activate view 1

Also find these links very useful.Getting a pointer to AppUI

Getting a Pointer to a View

Edit :

CYourApplicationAppUi* appui = (static_cast<CYourApplicationAppUi*>(iEikonEnv>AppUi())); 
// Get the view you want CSomeView* view = (CSomeView*)appui->View(TUid::Uid(ESomeViewId)) 
0

精彩评论

暂无评论...
验证码 换一张
取 消