Patch level : 10.0
Files correlati : xvaga,dll Ricompilazione Demo : [ ] Commento : Disabilitato momentaneamente chiusura programmi terminati malamente: attualemte non ne rileva mai nessuno git-svn-id: svn://10.65.10.50/trunk@17729 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a5ec59ae9f
commit
73ecc22087
@ -624,8 +624,11 @@ unsigned int OsWin32_FindMenuContainer()
|
||||
|
||||
static BOOL CALLBACK CountChildrenProc(HWND hwnd, LPARAM lParam)
|
||||
{
|
||||
if (lParam)
|
||||
{
|
||||
LONG* n = (LONG*)lParam;
|
||||
(*n)++;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -661,7 +664,10 @@ static BOOL CALLBACK CloseSiblingProc(HWND hwnd, LPARAM lParam)
|
||||
{
|
||||
::GetWindowText(hwnd, str, sizeof(str));
|
||||
if (str[0] == '\0')
|
||||
::PostMessage(hwnd, WM_ENDSESSION, 0, 0);
|
||||
{
|
||||
OsWin32_CloseChildren((UINT)hwnd);
|
||||
CloseChildrenProc(hwnd, 0L);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -670,7 +676,8 @@ static BOOL CALLBACK CloseSiblingProc(HWND hwnd, LPARAM lParam)
|
||||
|
||||
void OsWin32_CloseSiblings(unsigned int parent)
|
||||
{
|
||||
::EnumWindows(CloseSiblingProc, parent);
|
||||
// NON FUNZIONA!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
// ::EnumWindows(CloseSiblingProc, parent);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
|
@ -1153,6 +1153,7 @@ TTaskWin::~TTaskWin()
|
||||
xvt_res_free_menu_tree(m_menu);
|
||||
m_menu = NULL;
|
||||
}
|
||||
wxExit(); // Exits main loop in the "rare" case it's still running
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user