mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
- Remove last app(s) from list if there is no application running anymore.
- See issue #4182 for more details. svn path=/trunk/; revision=39695
This commit is contained in:
parent
82bba6cd0c
commit
b11277de45
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,7 @@ static int nApplicationPageHeight;
|
|||
static HANDLE hApplicationPageEvent = NULL; /* When this event becomes signaled then we refresh the app list */
|
||||
static BOOL bSortAscending = TRUE;
|
||||
DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter);
|
||||
BOOL noApps;
|
||||
BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam);
|
||||
void AddOrUpdateHwnd(HWND hWnd, WCHAR *szTitle, HICON hIcon, BOOL bHung);
|
||||
void ApplicationPageUpdate(void);
|
||||
|
@ -239,7 +240,10 @@ DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter)
|
|||
*
|
||||
* Should this be EnumDesktopWindows() instead?
|
||||
*/
|
||||
noApps = TRUE;
|
||||
EnumWindows(EnumWindowsProc, 0);
|
||||
if (noApps)
|
||||
(void)ListView_DeleteAllItems(hApplicationPageListCtrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -274,6 +278,7 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
|
|||
return TRUE; /* Skip this window */
|
||||
}
|
||||
|
||||
noApps = FALSE;
|
||||
/* Get the icon for this window */
|
||||
hIcon = NULL;
|
||||
SendMessageTimeoutW(hWnd, WM_GETICON,bLargeIcon ? ICON_BIG /*1*/ : ICON_SMALL /*0*/, 0, 0, 1000, (PDWORD_PTR)xhIcon);
|
||||
|
|
Loading…
Reference in a new issue