Patch level : 2.0 nopatch
Files correlati : xvaga.dll Ricompilazione Demo : [ ] Commento : Migliorata velocita' di chiamata di una nuova applicazione (soprattutto BA0) git-svn-id: svn://10.65.10.50/trunk@11511 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cd7d0b58ca
commit
4fe21fa617
@ -7,6 +7,7 @@
|
|||||||
#include "wx/fontdlg.h"
|
#include "wx/fontdlg.h"
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include <wx/snglinst.h>
|
#include <wx/snglinst.h>
|
||||||
|
#include <wx/thread.h>
|
||||||
|
|
||||||
#include "wx/fs_zip.h"
|
#include "wx/fs_zip.h"
|
||||||
#include "wx/html/helpctrl.h"
|
#include "wx/html/helpctrl.h"
|
||||||
@ -3657,6 +3658,31 @@ BOOLEAN xvt_sys_get_user_name(char* name, int maxlen)
|
|||||||
return len > 0;
|
return len > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
// Process processing
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
class TIconizeTaskThread : public wxThread
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
virtual ExitCode Entry();
|
||||||
|
public:
|
||||||
|
TIconizeTaskThread();
|
||||||
|
};
|
||||||
|
|
||||||
|
wxThread::ExitCode TIconizeTaskThread::Entry()
|
||||||
|
{
|
||||||
|
Sleep(1000);
|
||||||
|
((wxFrame*)_task_win)->Iconize();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
TIconizeTaskThread::TIconizeTaskThread()
|
||||||
|
{
|
||||||
|
Create();
|
||||||
|
SetPriority(WXTHREAD_MIN_PRIORITY);
|
||||||
|
Run();
|
||||||
|
}
|
||||||
|
|
||||||
long xvt_sys_execute(const char* cmdline, BOOLEAN sync, BOOLEAN iconizetask)
|
long xvt_sys_execute(const char* cmdline, BOOLEAN sync, BOOLEAN iconizetask)
|
||||||
{
|
{
|
||||||
long exitcode = 0;
|
long exitcode = 0;
|
||||||
@ -3666,15 +3692,19 @@ long xvt_sys_execute(const char* cmdline, BOOLEAN sync, BOOLEAN iconizetask)
|
|||||||
if (iconizetask)
|
if (iconizetask)
|
||||||
{
|
{
|
||||||
wxEnableTopLevelWindows(FALSE);
|
wxEnableTopLevelWindows(FALSE);
|
||||||
((wxFrame*)_task_win)->Iconize();
|
|
||||||
}
|
// ((wxFrame*)_task_win)->Iconize();
|
||||||
|
TIconizeTaskThread* it;
|
||||||
|
it = new TIconizeTaskThread();
|
||||||
|
|
||||||
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
|
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
|
||||||
if (iconizetask)
|
|
||||||
{
|
|
||||||
((wxFrame*)_task_win)->Restore();
|
((wxFrame*)_task_win)->Restore();
|
||||||
wxEnableTopLevelWindows(TRUE);
|
wxEnableTopLevelWindows(TRUE);
|
||||||
_task_win->Raise();
|
_task_win->Raise();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
exitcode = wxExecute(cmdline, wxEXEC_ASYNC);
|
exitcode = wxExecute(cmdline, wxEXEC_ASYNC);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user