To get foreground app i use this code:
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.