src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/HeaderControl.cs
/// <summary>
///     Listen for parent handle creation, to ensure we're in the right place in the Z-order.  Necessary because WinForms
///     calls that change Z-order prior to parent handle creation do not send WM_WINDOWPOSCHANGED (even if our handle
///     is created), so we do not receive notification.
/// </summary>
Listen for parent handle creation, to ensure we're in the right place in the Z-order.  Necessary because WinForms
calls that change Z-order prior to parent handle creation do not send WM_WINDOWPOSCHANGED (even if our handle
is created), so we do not receive notification.
Listen for parent handle creation to ensure we ' re in the right place in the Z - order . Necessary because WinForms calls that change Z - order prior to parent handle creation do not send WM_WINDOWPOSCHANGED ( even if our handle is created ) so we do not receive notification .
private void OnParentHandleCreated(object sender, EventArgs e)
        {
            var parent = sender as Control;
            Debug.Assert(parent != null, "should have parent control");
            if (parent != null)
            {
                parent.HandleCreated -= OnParentHandleCreated;
                if (myHeaderContainer != null
                    && parent == Parent)
                {
                    myHeaderContainer.UpdateHeaderControlZOrder();
                }
            }
        }
private void OnParentHandleCreated ( object sender , EventArgs e ) { var parent = sender as Control ; Debug . Assert ( parent != null , " " ) ; if ( parent != null ) { parent . HandleCreated -= OnParentHandleCreated ; if ( myHeaderContainer != null && parent == Parent ) { myHeaderContainer . UpdateHeaderControlZOrder ( ) ; } } }
Listen for parent handle creation, to ensure we're in the right place in the Z-order.
Listen for parent handle creation to ensure we ' re in the right place in the Z - order .
sender
object
e
EventArgs