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:
guy 2008-11-26 16:11:08 +00:00
parent a5ec59ae9f
commit 73ecc22087
2 changed files with 12 additions and 4 deletions

View File

@ -623,9 +623,12 @@ unsigned int OsWin32_FindMenuContainer()
} }
static BOOL CALLBACK CountChildrenProc(HWND hwnd, LPARAM lParam) static BOOL CALLBACK CountChildrenProc(HWND hwnd, LPARAM lParam)
{
if (lParam)
{ {
LONG* n = (LONG*)lParam; LONG* n = (LONG*)lParam;
(*n)++; (*n)++;
}
return TRUE; return TRUE;
} }
@ -661,7 +664,10 @@ static BOOL CALLBACK CloseSiblingProc(HWND hwnd, LPARAM lParam)
{ {
::GetWindowText(hwnd, str, sizeof(str)); ::GetWindowText(hwnd, str, sizeof(str));
if (str[0] == '\0') 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) void OsWin32_CloseSiblings(unsigned int parent)
{ {
::EnumWindows(CloseSiblingProc, parent); // NON FUNZIONA!!!!!!!!!!!!!!!!!!!!!!!!!!!
// ::EnumWindows(CloseSiblingProc, parent);
} }
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////

View File

@ -1153,6 +1153,7 @@ TTaskWin::~TTaskWin()
xvt_res_free_menu_tree(m_menu); xvt_res_free_menu_tree(m_menu);
m_menu = NULL; m_menu = NULL;
} }
wxExit(); // Exits main loop in the "rare" case it's still running
} }
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////