From d0ba06e7f2185cce87117a5ab511cf98cc48e1b3 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 2 Mar 2014 22:42:00 +0000 Subject: [PATCH] - Move code, this relates to CORE-6651. svn path=/trunk/; revision=62405 --- reactos/win32ss/user/ntuser/focus.c | 46 +++++++++++++++-------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/reactos/win32ss/user/ntuser/focus.c b/reactos/win32ss/user/ntuser/focus.c index c58e1d072ea..8c6973feb49 100644 --- a/reactos/win32ss/user/ntuser/focus.c +++ b/reactos/win32ss/user/ntuser/focus.c @@ -298,28 +298,6 @@ IntSendFocusMessages( PTHREADINFO pti, PWND pWnd) } } -HWND FASTCALL -IntFindChildWindowToOwner(PWND Root, PWND Owner) -{ - HWND Ret; - PWND Child, OwnerWnd; - - for(Child = Root->spwndChild; Child; Child = Child->spwndNext) - { - OwnerWnd = Child->spwndOwner; - if(!OwnerWnd) - continue; - - if(OwnerWnd == Owner) - { - Ret = Child->head.h; - return Ret; - } - } - - return NULL; -} - VOID FASTCALL FindRemoveAsyncMsg(PWND Wnd, WPARAM wParam) { @@ -546,6 +524,30 @@ co_IntSetForegroundAndFocusWindow( return Ret && fgRet; } +/* + Revision 7888, activate modal dialog when clicking on a disabled window. +*/ +HWND FASTCALL +IntFindChildWindowToOwner(PWND Root, PWND Owner) +{ + HWND Ret; + PWND Child, OwnerWnd; + + for(Child = Root->spwndChild; Child; Child = Child->spwndNext) + { + OwnerWnd = Child->spwndOwner; + if(!OwnerWnd) + continue; + + if(OwnerWnd == Owner) + { + Ret = Child->head.h; + return Ret; + } + } + return NULL; +} + BOOL FASTCALL co_IntMouseActivateWindow(PWND Wnd) {