Patch level : 10.0
Files correlati : xvaga.dll ba0.exe Ricompilazione Demo : [ ] Commento : Corretta gestione esecuzione programmi in parallelo durante anteprima documenti git-svn-id: svn://10.65.10.50/trunk@19052 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c008730a42
commit
29a2602aa6
@ -588,13 +588,15 @@ static BOOL CALLBACK EnumCampoChildrenProc(HWND hwnd, LPARAM lParam)
|
|||||||
if (::GetWindowText(hwnd, str, sizeof(str)))
|
if (::GetWindowText(hwnd, str, sizeof(str)))
|
||||||
{
|
{
|
||||||
TFindWindowInfo* w = (TFindWindowInfo*)lParam;
|
TFindWindowInfo* w = (TFindWindowInfo*)lParam;
|
||||||
if (w->_file == str)
|
if (w->_file == str) // str == "__CAMPO_HOST_WINDOW__"
|
||||||
{
|
{
|
||||||
|
str[13] = '\0'; // Impedisce che questa finestra abbia altri figli indesiderati
|
||||||
|
::SetWindowText(hwnd, str);
|
||||||
w->_hwnd = hwnd;
|
w->_hwnd = hwnd;
|
||||||
return FALSE;
|
return FALSE; // Fine della ricerca
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE; // Continua a cercare
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL CALLBACK EnumCampoMenuChildrenProc(HWND hwnd, LPARAM lParam)
|
static BOOL CALLBACK EnumCampoMenuChildrenProc(HWND hwnd, LPARAM lParam)
|
||||||
@ -608,10 +610,10 @@ static BOOL CALLBACK EnumCampoMenuChildrenProc(HWND hwnd, LPARAM lParam)
|
|||||||
::EnumChildWindows(hwnd, EnumCampoChildrenProc, lParam);
|
::EnumChildWindows(hwnd, EnumCampoChildrenProc, lParam);
|
||||||
const TFindWindowInfo* w = (TFindWindowInfo*)lParam;
|
const TFindWindowInfo* w = (TFindWindowInfo*)lParam;
|
||||||
if (w->_hwnd != NULL)
|
if (w->_hwnd != NULL)
|
||||||
return FALSE;
|
return FALSE; // Fine della ricerca
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE; // Continua a cercare
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int OsWin32_FindMenuContainer()
|
unsigned int OsWin32_FindMenuContainer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user