Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static IntPtr GetModalWindow(IntPtr owner)
 {
     return(ModalWindowUtils.GetModalWindow(owner));
 }
Exemplo n.º 3
0
 public static void ActivateWindow(IntPtr hwnd)
 {
     ModalWindowUtils.ActivateWindow(hwnd);
 }