Program stay in process list

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Miziakk
Knows some wx things
Knows some wx things
Posts: 39
Joined: Sun Dec 12, 2010 6:57 pm
Location: Poland

Program stay in process list

Post by Miziakk » Fri Jan 07, 2011 2:37 pm

Hi all,

I write program in wxMSN small tool to game, when I add to this program tray icon exit program stay in process list(taskmgr in windows XP).
I write in wxDev-C++ IDE.

Please chelp and sorry for my English.

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Fri Jan 07, 2011 3:19 pm

Hi!
You'll need to delete the taskbar icon explicitly when your app exits to have it removed from the try.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

Miziakk
Knows some wx things
Knows some wx things
Posts: 39
Joined: Sun Dec 12, 2010 6:57 pm
Location: Poland

Post by Miziakk » Fri Jan 07, 2011 3:27 pm

I do this look code:

Code: Select all

void Frame::FrameClickEvents(wxCommandEvent& event)
{
    switch(event.GetId()){
        case wxID_EXIT:{
            trayIcon->RemoveIcon();
            Destroy();
            break;
        }
        case BUTTON_ADD_TO_TRAY:{
			Iconize(true);
			Show(false);
			break;
        }
    }
}

Post Reply