Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor Kvet's Avatar
    Join Date
    May 2009
    Location
    Russia
    Posts
    73
    Hi all.

    I ran into such problem. This code worked in other applications and written in one of reasons, but exactly in my program he does not execute that must execute.

    Code:
    void CSWCoreUi::HideApp()
    	{
    	CApaWindowGroupName* fWinGroup = CApaWindowGroupName::NewLC(
    			iEikonEnv->WsSession(),
    			iEikonEnv->RootWin().Identifier());
    	fWinGroup->SetHidden(ETrue);
    	fWinGroup->SetSystem(ETrue);
    	fWinGroup->SetWindowGroupName(iEikonEnv->RootWin());
    	CleanupStack::PopAndDestroy();
    	}

  2. #2
    Registered User aamitgupta's Avatar
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503
    Quote Originally Posted by Kvet View Post
    Hi all.

    I ran into such problem. This code worked in other applications and written in one of reasons, but exactly in my program he does not execute that must execute.

    Code:
    void CSWCoreUi::HideApp()
    	{
    	CApaWindowGroupName* fWinGroup = CApaWindowGroupName::NewLC(
    			iEikonEnv->WsSession(),
    			iEikonEnv->RootWin().Identifier());
    	fWinGroup->SetHidden(ETrue);
    	fWinGroup->SetSystem(ETrue);
    	fWinGroup->SetWindowGroupName(iEikonEnv->RootWin());
    	CleanupStack::PopAndDestroy();
    	}
    What error you are getting?
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  3. #3
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,236
    If your target devices are based on S60 3rd FP1 and onwards then there is a simple one liner method from CAknAppUi class, i.e: HideApplicationFromFSW()
    Nokia Developer Wiki Moderation team

  4. #4
    Regular Contributor Kvet's Avatar
    Join Date
    May 2009
    Location
    Russia
    Posts
    73
    No errors does not get out. Does not simply work and all. I do not know depends on it or not but for me Windows 7 and Carbide.c++ 2.3

  5. #5
    Regular Contributor Kvet's Avatar
    Join Date
    May 2009
    Location
    Russia
    Posts
    73
    Quote Originally Posted by kiran10182 View Post
    If your target devices are based on S60 3rd FP1 and onwards then there is a simple one liner method from CAknAppUi class, i.e: HideApplicationFromFSW()
    This method works. Thank you! Only question, for 9.1 how I must act?

  6. #6
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,236
    Nokia Developer Wiki Moderation team

  7. #7
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by Kvet View Post
    This method works. Thank you! Only question, for 9.1 how I must act?
    HideApplicationFromFSW exists and works on S60 3rd noFP devices too.

  8. #8
    Regular Contributor Kvet's Avatar
    Join Date
    May 2009
    Location
    Russia
    Posts
    73
    This method works (`HideApplicationFromFSW();`). But that to do with the group of windows, if it is it also needed to hide, in fact not all use the standard manager of tasks?

  9. #9
    Regular Contributor Kvet's Avatar
    Join Date
    May 2009
    Location
    Russia
    Posts
    73
    void CSWCoreUi::HideApp()
    {
    CApaWindowGroupName* fWinGroup = CApaWindowGroupName::NewLC(
    iEikonEnv->WsSession(),
    iEikonEnv->RootWin().Identifier());
    fWinGroup->SetHidden(ETrue);
    fWinGroup->SetSystem(ETrue);
    fWinGroup->SetWindowGroupName(iEikonEnv->RootWin());
    CleanupStack::PopAndDestroy();
    }
    Why this code works in a function CAknAppUi::HandleCommandL(TInt aCommand), but does not work in CAknAppUi::ConstructL()?

Similar Threads

  1. Hide Setting List items
    By ssabestian in forum Symbian C++
    Replies: 7
    Last Post: 2009-02-24, 08:31
  2. Showing an exe on task list. Is it posible?
    By joxepo in forum Symbian C++
    Replies: 6
    Last Post: 2009-02-23, 08:08
  3. Hide app in Task Manager
    By oper6600 in forum Python
    Replies: 3
    Last Post: 2008-09-01, 16:30
  4. S60 2nd ed FP2 Task List Problem
    By dave-rv in forum Symbian C++
    Replies: 3
    Last Post: 2007-12-12, 10:09
  5. Hide Application from task list
    By ekramulhuq in forum Symbian C++
    Replies: 0
    Last Post: 2003-10-13, 05:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved