How to bring an application to foreground
| Thu, 2005-03-31 13:11 | |
|
Hi All I want to bring my application to foreground, From forum I came to know RWsSession ws; User::LeaveIfError(ws.Connect()); ws.SetWindowGroupOrdinalPosition(iWindowsGroupID, 0); ws.Close(); This can be used for purporting the goal. But how can I get windowgroup identifier which is iWindowsGroupID here. Can anyone help me.. --------------- |
|






Forum posts: 188
TInt iWindowsGroupID= CEikonEnv::Static()->WsSession().GetFocusWindowGroup();
CEikonEnv::Static()->WsSession().SetWindowGroupOrdinalPosition(iWindowsGroupID, 0);
BR
CK
----
Chetan Kulshrestha
Forum posts: 239
and Thanks for ur reply
But Chetan I think this line will get the identifier for the window that currently has keyboard focus.
However I have tried this one..but it doesn;t seems to work.
TInt iWindowsGroupID= CEikonEnv::Static()->WsSession().GetFocusWindowGroup();
Currect me If I am wrong.
Thanks again
---------------
Bhatt Kavita
Forum posts: 188
Where you are implementing this part of the code , i mean in App or in exe?
are you implementing this code in the same application, that you want to bring in foreground? if yes than how you are calling this part of code?
BR
Chetan
----
Chetan Kulshrestha
Forum posts: 21
is it possible with your solution to fix an application allways on layer position 2. that means this application is allways in front of the idle screen.
regardless of which other applications are open at the moment.
i want to build an application which have a window on the idle screen. i found no way to draw directly on that idle screen. now i want to have an application which is allways on position in front of the idle screen. (idle screen means -> root screen -> the screen which is shown after the start up)
series60.ch