Patch level : 2.0 470
Files correlati : Ricompilazione Demo : [ ] Commento : Tolti parametri inutili alla xvt_sys_get_editor git-svn-id: svn://10.65.10.50/trunk@11146 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8ceafaef70
commit
b83897e2fd
@ -3450,12 +3450,20 @@ long xvt_sys_execute(const char* cmdline, BOOLEAN sync, BOOLEAN iconizetask)
|
||||
if (iconizetask)
|
||||
{
|
||||
wxEnableTopLevelWindows(FALSE);
|
||||
#ifdef WIN32
|
||||
::PostMessage((HWND)_task_win->GetHWND(), WM_SYSCOMMAND, SC_MINIMIZE, 0L);
|
||||
#else
|
||||
_task_win->Hide();
|
||||
#endif
|
||||
}
|
||||
exitcode = wxExecute(cmdline, wxEXEC_SYNC);
|
||||
if (iconizetask)
|
||||
{
|
||||
#ifdef WIN32
|
||||
::SendMessage((HWND)_task_win->GetHWND(), WM_SYSCOMMAND, SC_RESTORE, 0L);
|
||||
#else
|
||||
_task_win->Show();
|
||||
#endif
|
||||
wxEnableTopLevelWindows(TRUE);
|
||||
_task_win->Raise();
|
||||
}
|
||||
@ -3503,7 +3511,7 @@ int xvt_sys_get_profile_string(const char* file, const char* paragraph, const ch
|
||||
const char* defval, char* value, int maxsize)
|
||||
{
|
||||
#ifdef WIN32
|
||||
int len = GetPrivateProfileString(paragraph, name, defval, value, maxsize, file);
|
||||
int len = ::GetPrivateProfileString(paragraph, name, defval, value, maxsize, file);
|
||||
#else
|
||||
wxFileConfig ini("", "", file);
|
||||
|
||||
@ -3531,7 +3539,7 @@ BOOLEAN xvt_sys_set_profile_string(const char* file, const char* paragraph, cons
|
||||
const char* value)
|
||||
{
|
||||
#ifdef WIN32
|
||||
return WritePrivateProfileString(paragraph, name, value, file);
|
||||
return ::WritePrivateProfileString(paragraph, name, value, file);
|
||||
#else
|
||||
wxFileConfig ini("", "", file);
|
||||
|
||||
@ -3543,16 +3551,15 @@ BOOLEAN xvt_sys_set_profile_string(const char* file, const char* paragraph, cons
|
||||
#endif
|
||||
}
|
||||
|
||||
BOOLEAN xvt_sys_find_editor(const char* file, char* editor, int editorsize)
|
||||
BOOLEAN xvt_sys_find_editor(const char* file, char* editor)
|
||||
{
|
||||
XVT_ASSERT(editor != NULL && editorsize > 0);
|
||||
BOOLEAN ok = FALSE;
|
||||
|
||||
#ifdef WIN32
|
||||
const wxString e = OsWin32_File2App(file);
|
||||
ok = !e.IsEmpty();
|
||||
if (ok)
|
||||
strncpy(editor, e, editorsize);
|
||||
if (ok && editor != NULL)
|
||||
strcpy(editor, e);
|
||||
#else
|
||||
SORRY_BOX();
|
||||
#endif
|
||||
|
@ -274,7 +274,7 @@ XVTDLL BOOLEAN xvt_sys_get_host_name(char* name, int maxlen);
|
||||
XVTDLL BOOLEAN xvt_sys_get_user_name(char* name, int maxlen);
|
||||
XVTDLL BOOLEAN xvt_sys_goto_url(const char* url, const char* action);
|
||||
XVTDLL BOOLEAN xvt_sys_dongle_server_is_running();
|
||||
XVTDLL BOOLEAN xvt_sys_find_editor(const char* file, char* editor, int editorsize);
|
||||
XVTDLL BOOLEAN xvt_sys_find_editor(const char* file, char* editor);
|
||||
XVTDLL int xvt_sys_get_profile_string(const char* file, const char* paragraph, const char* name,
|
||||
const char* defval, char* value, int maxsize);
|
||||
XVTDLL BOOLEAN xvt_sys_set_profile_string(const char* file, const char* paragraph, const char* name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user