×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    31

    Question Get existing RWindowGroup of foreground app (not my)

    Hi, all!

    To get foreground app i use this code:

    RWsSession ws;
    ws.Connect();
    CleanupClosePushL(ws);
    TApaTaskList taskList = TApaTaskList(ws);
    TApaTask foregroundTask = taskList.FindByPos(0);

    How can i get RWindowGroup of this foregroundTask?

    I use RWindowGroup &wg = iEikonEnv->RootWin(); to get RWindowGroup of my application. But can't get RWindowGroup of this foregroundTask.

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    7

    Re: Get existing RWindowGroup of foreground app (not my)

    I don't know your reason for doing this (so the answer might be off topic) and if it is done in a background running server (which I assume) but if you look in this example you will find a way of writing an observer for the foreground. This will allow you to access the window server when something changes in the foreground. Have a look at the RWsSession functions and try from there.
    http://wiki.forum.nokia.com/index.ph...eground_events

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    31

    Re: Get existing RWindowGroup of foreground app (not my)

    thanks. Reason - remote control my app1 from my app2.

Similar Threads

  1. Replies: 1
    Last Post: 2007-07-09, 04:09
  2. symbian signed testing problem.
    By anglina in forum Symbian
    Replies: 0
    Last Post: 2007-02-01, 10:15
  3. Bring app to foreground by typing a special code
    By minegeneric in forum Symbian
    Replies: 2
    Last Post: 2006-01-31, 12:09
  4. Move App to foreground at Call End?
    By ArneH in forum Symbian
    Replies: 4
    Last Post: 2004-07-02, 07:57
  5. how to bring inactive (or background) app into foreground?
    By nitinkumar in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-03-10, 07:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×