src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Determines if the given handle represents an the in-place edit window or one of its
///     children.
/// </summary>
Determines if the given handle represents an the in-place edit window or one of its
children.
Determines if the given handle represents an the in - place edit window or one of its children .
private bool IsInPlaceEditWindow(IntPtr testHandle)
        {
            if (GetStateFlag(VTCStateFlags.LabelEditActive))
            {
                var labelCtl = myInPlaceControl.InPlaceControl;
                var labelHandle = labelCtl.Handle;
                if (labelCtl.HasChildren)
                {
                    while (testHandle != IntPtr.Zero)
                    {
                        if (labelHandle == testHandle)
                        {
                            return true;
                        }
                        testHandle = NativeMethods.GetParent(testHandle);
                    }
                }
                else if (testHandle == labelHandle)
                {
                    return true;
                }
            }
            return false;
        }
private bool IsInPlaceEditWindow ( IntPtr testHandle ) { if ( GetStateFlag ( VTCStateFlags . LabelEditActive ) ) { var labelCtl = myInPlaceControl . InPlaceControl ; var labelHandle = labelCtl . Handle ; if ( labelCtl . HasChildren ) { while ( testHandle != IntPtr . Zero ) { if ( labelHandle == testHandle ) { return true ; } testHandle = NativeMethods . GetParent ( testHandle ) ; } } else if ( testHandle == labelHandle ) { return true ; } } return false ; }
Determines if the given handle represents an the in-place edit window or one of its
children.
Determines if the given handle represents an the in - place edit window or one of its children .
testHandle
IntPtr