示例#1
0
 /// <summary>
 /// Initializes a new instance of the AccessibleEventArgs class.
 /// </summary>
 public AccessibleEventArgs(AccessibleEventType eventType,
                            IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     this.eventType     = eventType;
     this.hWnd          = hwnd;
     this.idObject      = idObject;
     this.idChild       = idChild;
     this.dwEventThread = dwEventThread;
     this.dwmsEventTime = dwmsEventTime;
 }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the AccessibleEventArgs class.
 /// </summary>
 public AccessibleEventArgs(AccessibleEventType eventType,
                            IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     EventType = eventType;
     HWnd      = hwnd;
     ObjectID  = idObject;
     ChildID   = idChild;
     Thread    = dwEventThread;
     Time      = dwmsEventTime;
 }
示例#3
0
        private void InternalCallback(IntPtr hWinEventHook, AccessibleEventType eventType,
                                      IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
        {
            if (hWinEventHook != handle)
            {
                return;
            }
            AccessibleEventArgs aea = new AccessibleEventArgs(eventType, hwnd, idObject, idChild, dwEventThread, dwmsEventTime);

            if (EventOccurred != null)
            {
                EventOccurred(this, aea);
            }
        }
示例#4
0
 private static extern IntPtr SetWinEventHook(AccessibleEventType eventMin, AccessibleEventType eventMax, IntPtr
                                              hmodWinEventProc, WinEventDelegate lpfnWinEventProc, uint idProcess,
                                              uint idThread, uint dwFlags);
 private void InternalCallback(IntPtr hWinEventHook, AccessibleEventType eventType,
     IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     if (hWinEventHook != handle) return;
     AccessibleEventArgs aea = new AccessibleEventArgs(eventType, hwnd, idObject, idChild, dwEventThread, dwmsEventTime);
     if (EventOccurred != null)
         EventOccurred(this, aea);
 }
 private static extern IntPtr SetWinEventHook(AccessibleEventType eventMin, AccessibleEventType eventMax, IntPtr
     hmodWinEventProc, WinEventDelegate lpfnWinEventProc, uint idProcess,
     uint idThread, uint dwFlags);
 public AccessibleEventArgs(AccessibleEventType eventType,
     IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     this.eventType = eventType;
     this.hWnd = hwnd;
     this.idObject = idObject;
     this.idChild = idChild;
     this.dwEventThread = dwEventThread;
     this.dwmsEventTime = dwmsEventTime;
 }