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:
parent
905801f9da
commit
2cb2bd768e
@ -3661,6 +3661,8 @@ BOOLEAN xvt_sys_get_user_name(char* name, int maxlen)
|
|||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// Process processing
|
// Process processing
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
static bool __bChildRunning = false;
|
||||||
|
|
||||||
class TIconizeTaskThread : public wxThread
|
class TIconizeTaskThread : public wxThread
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
@ -3672,9 +3674,11 @@ public:
|
|||||||
wxThread::ExitCode TIconizeTaskThread::Entry()
|
wxThread::ExitCode TIconizeTaskThread::Entry()
|
||||||
{
|
{
|
||||||
Sleep(750);
|
Sleep(750);
|
||||||
|
if (__bChildRunning) // Il programma e' ancora attivo
|
||||||
|
{
|
||||||
wxFrame* frame = (wxFrame*)_task_win;
|
wxFrame* frame = (wxFrame*)_task_win;
|
||||||
if (!frame->IsEnabled()) // Il programma e' ancora in attesa
|
|
||||||
frame->Iconize();
|
frame->Iconize();
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3699,7 +3703,9 @@ long xvt_sys_execute(const char* cmdline, BOOLEAN sync, BOOLEAN iconizetask)
|
|||||||
TIconizeTaskThread* it;
|
TIconizeTaskThread* it;
|
||||||
it = new TIconizeTaskThread();
|
it = new TIconizeTaskThread();
|
||||||
|
|
||||||
|
__bChildRunning = true;
|
||||||
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
|
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
|
||||||
|
__bChildRunning = false;
|
||||||
|
|
||||||
wxFrame* frame = (wxFrame*)_task_win;
|
wxFrame* frame = (wxFrame*)_task_win;
|
||||||
if (frame->IsIconized())
|
if (frame->IsIconized())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user