Пример #1
0
 public  SUIDotNetToolStrip(IntPtr hWnd) 
     : base(hWnd)
 {
     accessibleObject = new SUIAccessibility(hWnd, AccType.Client);
 }
Пример #2
0
 public MsoCommandBarItemPopup(SUIAccessibility acc)
 {
     activeaccessibility = acc;
 }
Пример #3
0
 private void InitToolBar()
 {
     if(this.WindowHandle != null)
     {
         CurAccessibile = new SUIAccessibility(WindowHandle,AccType.NativeOM);
         int count = CurAccessibile.ChildCount;
         itemList = new MsoCommandBarItem[count];
         int index = 0;
         for (int i = 1; i < count; i++)
         {
             if (CurAccessibile.Children[i].IsVisible)
             {
                 itemList[index] = new MsoCommandBarItem(CurAccessibile.Children[i]);
                 index++;
             }
         }
     }
 }
Пример #4
0
 private void InitToolBar()
 {
     if (this.WindowHandle != null)
     {
         CurAccessibile = new SUIAccessibility(WindowHandle, AccType.NativeOM);
         int count = CurAccessibile.ChildCount;
         itemList = new MsoCommandBarItemPopup[count];
         int index = 0;
         for (int i = 1; i <= count; i++)
         {
             if (CurAccessibile.Children[i].IsVisible || CurAccessibile.Children[i].Height > 0)//Judge whether it is visible not only by property IsVisible but also Height
             {
                 itemList[index] = new MsoCommandBarItemPopup(CurAccessibile.Children[i]);
                 index++;
             }
         }
     }
 }
Пример #5
0
 public SUIDotNetToolStripItem(SUIDotNetToolStrip container, int index)
 {
     this.container = container;
     itemIndex = index;
     accessibleObject = container.AccessibleObject.Children[index];
 }