src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeAccEvents.cs
/// <summary>
///     Signals the system that an accessibility event occurred.
///     The notification will be sent for the specified view only.
/// </summary>
/// <param name="accessibilityEvent">One of the predefined EVENT_OBJECT_* or EVENT_SYSTEM_* constants.</param>
/// <param name="row">row index for item.</param>
/// <param name="column">column index for item.</param>
/// <param name="treeControl">The VirtualTreeControl that contains the object that generated the event.</param>
Signals the system that an accessibility event occurred.
The notification will be sent for the specified view only.
Signals the system that an accessibility event occurred . The notification will be sent for the specified view only .
public static void Notify(int accessibilityEvent, int row, int column, VirtualTreeControl treeControl)
            {
                Debug.Assert(ShouldNotify(accessibilityEvent, treeControl));
                if ((treeControl == null)
                    || (row < 0)
                    || (column < 0))
                {
                    return;
                }
                var accessibleObjectId = Instance.InternalAddObject(treeControl, row, column);
                var viewHandleRef = new HandleRef(treeControl, treeControl.Handle);
                NativeMethods.NotifyWinEvent(
                    accessibilityEvent, 
                    viewHandleRef, 
                    accessibleObjectId, 
                    NativeMethods.CHILDID_SELF); 
            }
public static void Notify ( int accessibilityEvent , int row , int column , VirtualTreeControl treeControl ) { Debug . Assert ( ShouldNotify ( accessibilityEvent , treeControl ) ) ; if ( ( treeControl == null ) || ( row < 0 ) || ( column < 0 ) ) { return ; } var accessibleObjectId = Instance . InternalAddObject ( treeControl , row , column ) ; var viewHandleRef = new HandleRef ( treeControl , treeControl . Handle ) ; NativeMethods . NotifyWinEvent ( accessibilityEvent , viewHandleRef , accessibleObjectId , NativeMethods . CHILDID_SELF ) ; }
Signals the system that an accessibility event occurred.
Signals the system that an accessibility event occurred .
// Add the accessibleObject to the circular array and generate an ID for it. // Create a HandleRef object for the hwnd. // (A HandleRef structure wraps a managed object holding a  // handle to a resource that is passed to unmanaged code. // Wrapping a handle with HandleRef guarantees that the managed  // object is not garbage collected until the platform invoke call completes.) // Notify the system of the event. // Specifies the event that occurred // Handle to the window that contains the object that generated the event. // Generated object ID that uniquely identifies the accessibleObject (for use by WM_GETOBJECT). // CHILDID_SELF means the event was generated by the object itself, not a child object.
accessibilityEvent
int
One of the predefined EVENT_OBJECT_* or EVENT_SYSTEM_* constants.
One of the predefined EVENT_OBJECT_ * or EVENT_SYSTEM_ * constants .
row
int
row index for item.
row index for item .
column
int
column index for item.
column index for item .
treeControl
VirtualTreeControl
The VirtualTreeControl that contains the object that generated the event.
The VirtualTreeControl that contains the object that generated the event .