From 03893cf330dfd1dada72f42db1ac8cd65889b71f Mon Sep 17 00:00:00 2001 From: wj32 Date: Tue, 11 Dec 2012 09:53:39 +0000 Subject: [PATCH] reverted some test changes git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5179 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- 2.x/trunk/ProcessHacker/mainwnd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/2.x/trunk/ProcessHacker/mainwnd.c b/2.x/trunk/ProcessHacker/mainwnd.c index 49df6bf8e..b3375c19b 100644 --- a/2.x/trunk/ProcessHacker/mainwnd.c +++ b/2.x/trunk/ProcessHacker/mainwnd.c @@ -3975,11 +3975,17 @@ static BOOL CALLBACK EnumProcessWindowsProc( ) { ULONG processId; + HWND parentWindow; + + if (!IsWindowVisible(hwnd)) + return TRUE; GetWindowThreadProcessId(hwnd, &processId); if ( - processId == (ULONG)lParam + processId == (ULONG)lParam && + !((parentWindow = GetParent(hwnd)) && IsWindowVisible(parentWindow)) && // skip windows with a visible parent + GetWindowTextLength(hwnd) != 0 ) { SelectedProcessWindowHandle = hwnd;