Patch level : 2.0 618

Files correlati     : xvaga.dll
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@11534 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-10-24 09:59:49 +00:00
parent 905801f9da
commit 2cb2bd768e

View File

@ -3661,6 +3661,8 @@ BOOLEAN xvt_sys_get_user_name(char* name, int maxlen)
///////////////////////////////////////////////////////////
// Process processing
///////////////////////////////////////////////////////////
static bool __bChildRunning = false;
class TIconizeTaskThread : public wxThread
{
protected:
@ -3672,9 +3674,11 @@ public:
wxThread::ExitCode TIconizeTaskThread::Entry()
{
Sleep(750);
wxFrame* frame = (wxFrame*)_task_win;
if (!frame->IsEnabled()) // Il programma e' ancora in attesa
if (__bChildRunning) // Il programma e' ancora attivo
{
wxFrame* frame = (wxFrame*)_task_win;
frame->Iconize();
}
return 0;
}
@ -3699,7 +3703,9 @@ long xvt_sys_execute(const char* cmdline, BOOLEAN sync, BOOLEAN iconizetask)
TIconizeTaskThread* it;
it = new TIconizeTaskThread();
__bChildRunning = true;
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
__bChildRunning = false;
wxFrame* frame = (wxFrame*)_task_win;
if (frame->IsIconized())