Getting a handle on a windown group
Login to reply to this topic.
Thu, 2005-12-22 18:42
Joined: 2003-09-22
Forum posts: 30
Hi,
Does anybody know how to get a handle on the window group of an applictaion seperate to your own. I thought that the following code would dod so but instead it seems to create a new window group with the same name etc as the one im trying to get a handle on. I can see this from my application switcher list. Every time I invoke this code I see a  new application of the same name with no icon appended to the list. I am running this on a Nokia N70 and am trying to get a handle on the phone application.

RWsSession & wsSession = CCoeEnv::Static()->WsSession();
TApaTaskList currentApps(wsSession);
TApaTask appToFind = currentApps.FindApp(phoneAppUID);
if (appToFind.Exists())
{
  TInt wgID=appToFind.WgId();
  RWindowGroup wg(wsSession);
  if(wg.Construct(wgID)==KErrNone)
  {
    //.......
    //do stuff wit the window group
  }
}

Thanks,
Brian

Wed, 2006-01-04 15:16
Joined: 2003-09-22
Forum posts: 30
Hi, Does anybody have any more thoughts on this one?
Brian
Fri, 2006-03-10 11:04
Joined: 2005-03-03
Forum posts: 52
don't you think you are creating a new window group.
Just see the documentation of windowgroup. I think you are creating a new window group.

copyright 2003-2009 NewLC SARL