src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Finish an extensive update to the control and optionally invalidate the control to
///     force it to redraw.
/// </summary>
/// <param name="invalidate">true to invalidate the control</param>
/// <returns>True if this balances the initial BeginUpdate request.</returns>
Finish an extensive update to the control and optionally invalidate the control to
force it to redraw.
Finish an extensive update to the control and optionally invalidate the control to force it to redraw .
public bool EndUpdate(bool invalidate)
        {
            if (myUpdateCount > 0)
            {
                Debug.Assert(IsHandleCreated, "Handle should be created by now");
                --myUpdateCount;
                if (myUpdateCount == 0)
                {
                    NativeMethods.SendMessage(Handle, NativeMethods.WM_SETREDRAW, -1, 0);
                    if (invalidate)
                    {
                        Invalidate();
                    }
                }
                return true;
            }
            else
            {
                return false;
            }
        }
public bool EndUpdate ( bool invalidate ) { if ( myUpdateCount > 0 ) { Debug . Assert ( IsHandleCreated , " " ) ; -- myUpdateCount ; if ( myUpdateCount == 0 ) { NativeMethods . SendMessage ( Handle , NativeMethods . WM_SETREDRAW , - 1 , 0 ) ; if ( invalidate ) { Invalidate ( ) ; } } return true ; } else { return false ; } }
Finish an extensive update to the control and optionally invalidate the control to
force it to redraw.
Finish an extensive update to the control and optionally invalidate the control to force it to redraw .
True if this balances the initial BeginUpdate request.
True if this balances the initial BeginUpdate request .
invalidate
bool
true to invalidate the control
true to invalidate the control