- Move code, this relates to CORE-6651.
authorJames Tabor <james.tabor@reactos.org>
Sun, 2 Mar 2014 22:42:00 +0000 (22:42 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sun, 2 Mar 2014 22:42:00 +0000 (22:42 +0000)
svn path=/trunk/; revision=62405

reactos/win32ss/user/ntuser/focus.c

index c58e1d0..8c6973f 100644 (file)
@@ -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)
 {
 VOID FASTCALL
 FindRemoveAsyncMsg(PWND Wnd, WPARAM wParam)
 {
@@ -546,6 +524,30 @@ co_IntSetForegroundAndFocusWindow(
    return Ret && fgRet;
 }
 
    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)
 {
 BOOL FASTCALL
 co_IntMouseActivateWindow(PWND Wnd)
 {