src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/HeaderControl.cs
/// <summary>
///     Remove all items from the header control
/// </summary>
Remove all items from the header control
Remove all items from the header control
public void Clear()
        {
            if (IsHandleCreated)
            {
                var hWnd = Handle;
                var itemCount = (int)NativeMethods.SendMessage(hWnd, NativeMethods.HDM_GETITEMCOUNT, 0, 0);
                for (var i = itemCount - 1; i >= 0; --i)
                {
                    NativeMethods.SendMessage(hWnd, NativeMethods.HDM_DELETEITEM, i, 0);
                }
            }
        }
public void Clear ( ) { if ( IsHandleCreated ) { var hWnd = Handle ; var itemCount = ( int ) NativeMethods . SendMessage ( hWnd , NativeMethods . HDM_GETITEMCOUNT , 0 , 0 ) ; for ( var i = itemCount - 1 ; i >= 0 ; -- i ) { NativeMethods . SendMessage ( hWnd , NativeMethods . HDM_DELETEITEM , i , 0 ) ; } } }
Remove all items from the header control
Remove all items from the header control