src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeAccEvents.cs
/// <summary>
///     Call to test if the Notify method needs to be called. ShouldNotify should
///     always be called before Notify.
/// </summary>
/// <param name="accessibilityEvent">One of the predefined EVENT_OBJECT_* or EVENT_SYSTEM_* constants.</param>
/// <param name="treeControl">The tree control that generated the event</param>
/// <returns>true if Notify should be called</returns>
Call to test if the Notify method needs to be called. ShouldNotify should
always be called before Notify.
Call to test if the Notify method needs to be called . ShouldNotify should always be called before Notify .
public static bool ShouldNotify(int accessibilityEvent, VirtualTreeControl treeControl)
            {
                if (treeControl.GetStateFlag(VTCStateFlags.ReturnedAccessibilityObject))
                {
                    return NativeMethods.WinXPOrHigher ? (0 != NativeMethods.IsWinEventHookInstalled(accessibilityEvent)) : true;
                }
                return false;
            }
public static bool ShouldNotify ( int accessibilityEvent , VirtualTreeControl treeControl ) { if ( treeControl . GetStateFlag ( VTCStateFlags . ReturnedAccessibilityObject ) ) { return NativeMethods . WinXPOrHigher ? ( 0 != NativeMethods . IsWinEventHookInstalled ( accessibilityEvent ) ) : true ; } return false ; }
Call to test if the Notify method needs to be called.
Call to test if the Notify method needs to be called .
// IsWinEventHookInstalled not available on W2k
true if Notify should be called
true if Notify should be called
accessibilityEvent
int
One of the predefined EVENT_OBJECT_* or EVENT_SYSTEM_* constants.
One of the predefined EVENT_OBJECT_ * or EVENT_SYSTEM_ * constants .
treeControl
VirtualTreeControl
The tree control that generated the event
The tree control that generated the event