closing window created through RWindowGroup

Login to reply to this topic.
Tue, 2005-08-09 05:57
Joined: 2005-06-18
Forum posts: 7
hi all,

i have a small problem while deactivating the window group.

In an incoming call, i am able to bring the window to the front of the screen through RWindowGroup. but the window should also be deactivated and should go to background, when the call is hanged up. but i am not able to close the window which i have created. Can any one help me out in how to deactivat that window.

and in my code i have used a seprate class derived from CCoeControl which just implements the RWindowGroup to draw the window. and i am using the follwing functions to deactivate it.

myfn()
{
       CloseWindow();
   iMyWindowGroup.SetOrdinalPosition( 0, ECoeWinPriorityNeverAtFront);
   iMyWindowGroup.Close();
}

can anyone help. thnks in advance.

Tue, 2005-08-09 13:40
Joined: 2005-06-18
Forum posts: 7
Re: closing window created through RWindowGroup
hi all,

can'nt any one help ... or is my question not clear ...

thnks
Wed, 2005-08-10 09:23
Joined: 2004-12-30
Forum posts: 10
Re: closing window created through RWindowGroup
Hi
Could you tell me how do you bring your app to the foreground when the incoming call is ringing?
Many thanks
Wed, 2005-08-10 10:50
Joined: 2005-06-18
Forum posts: 7
Re: closing window created through RWindowGroup
hi daneel

i am calling the follwing code from an appui, on an incoming call :
TApaTask task(iEikonEnv->WsSession());
task.SetWgId(iEikonEnv->RootWin().Identifier());
task.BringToForeground();

and then i am creating my owm RWindowGroup (u can find here in differnt posts how to create a window group) to bring my window to the front.

thnks
  • Login to reply to this topic.