开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜