public bool EnumChildren(IntPtr hwnd, IntPtr lParam)
        {
            int level = 1;

            if (WindowNative.IsWindowVisible(hwnd) &&
                ModalWindowUtils.IsOwned(lParam, hwnd, ref level) &&
                level > _maxOwnershipLevel)
            {
                MaxOwnershipHandle = hwnd;
                _maxOwnershipLevel = level;
            }

            return(true);
        }
Example #2
0
 public static IntPtr GetModalWindow(IntPtr owner)
 {
     return(ModalWindowUtils.GetModalWindow(owner));
 }
Example #3
0
 public static void ActivateWindow(IntPtr hwnd)
 {
     ModalWindowUtils.ActivateWindow(hwnd);
 }