1 write to _hwnd
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
60_hwnd = hwnd;
848 references to _hwnd
UIAutomationClientSideProviders (848)
MS\Internal\AutomationProxies\NonClientArea.cs (27)
209int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 231WindowsTitleBar tb = new WindowsTitleBar(_hwnd, this, 0); 305return new int [] { 1, unchecked((int)(long)_hwnd) }; 311if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 356WindowScroll.SetScrollPercent (_hwnd, horizontalPercent, verticalPercent, true); 362WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 370return (double) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 379return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 388return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 397return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 406return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 415return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 461if (WindowsScrollBar.HasHorizontalScrollBar (_hwnd)) 465if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 466return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 468return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 473if (WindowsScrollBar.HasVerticalScrollBar (_hwnd)) 477if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 478return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 480return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 487if (WindowsTitleBar.HasTitleBar (_hwnd)) 489return new WindowsTitleBar (_hwnd, this, (int) item); 504if (WindowsGrip.IsGripPresent(_hwnd, false)) 506return new WindowsGrip(_hwnd, this, (int)item); 539IntPtr menu = UnsafeNativeMethods.GetMenu(_hwnd); 542menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 579if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (15)
88WinEventTracker.AddToNotificationList (_hwnd, _createOnEvent, aEvents, cEvents); 118WinEventTracker.RemoveToNotificationList (_hwnd, aEvents, null, cEvents); 129return PtInClientRect (_hwnd, x, y) ? this : null; 139accessKey = GetLabelAccessKey(_hwnd); 153if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 155string sPersistentID = WindowsFormsHelper.WindowsFormsID (_hwnd); 163if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 182IntPtr label = Misc.GetLabelhwnd(_hwnd); 191name = Misc.ProxyGetText(_hwnd); 216_controlLabel = Misc.GetLabelhwnd(_hwnd); 229if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 234IntPtr hwndParent = Misc.GetParent(_hwnd); 261int idChild = Misc.GetWindowId(_hwnd); 262string text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, idChild); 265text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, 0);
MS\Internal\AutomationProxies\ProxySimple.cs (22)
92if (_hwnd == IntPtr.Zero) 99if (!Misc.GetWindowRect(_hwnd, ref controlRectangle)) 152id[1] = _hwnd.ToInt32(); 166if (_hwnd == IntPtr.Zero || (GetParent() != null && GetParent()._hwnd == _hwnd)) 171return AutomationInteropProvider.HostProviderFromHandle(_hwnd); 206return Misc.IsEnabled(_hwnd); 217Misc.GetWindowThreadProcessId(_hwnd, out pid); 239return Misc.GetFocusedWindow() == _hwnd ? IsFocused() : false; 259return WindowsFormsHelper.IsWindowsFormsControl(_hwnd) ? "WinForm" : "Win32"; 268if (Misc.GetFocusedWindow() == _hwnd && IsFocused()) 274if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 340string sRawName = Misc.GetControlName(_hwnd, false); 389EventManager.DispatchEvent(this, _hwnd, eventId, idProp, idObject); 529if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 579Misc.GetClientRectInScreenCoordinates(_hwnd, ref rcOutside); 603return ClickablePoint.GetPoint(_hwnd, alIn, alOut, ref pt); 639_IAccessible = Accessible.AccessibleObjectFromWindow(_hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK ? acc.IAccessible : null; 655return _hwnd; 664return Misc.GetWindowStyle(_hwnd); 673return Misc.GetWindowExStyle(_hwnd);
MS\Internal\AutomationProxies\WindowsAltTab.cs (8)
37GetAltTabInfo(_hwnd, 0, ref _altTabInfo, null); 127if (Misc.MapWindowPoints(System.IntPtr.Zero, _hwnd, ref pt, 1)) 131if(Misc.GetClientRect(_hwnd, ref clientRect)) 192altTabItem = new WindowsAltTabItem(_hwnd, this, item); 211if (GetAltTabInfo(_hwnd, -1, ref altTabInfo, null)) 342return GetBoundingRect().ToRect(Misc.IsControlRTL(_hwnd)); 355if (WindowsAltTab.GetAltTabInfo(_hwnd, _item, ref altTabInfo, itemText)) 387if(!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2))
MS\Internal\AutomationProxies\WindowsButton.cs (22)
253if (!WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms) && IsStartButton()) 258return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 264return SafeNativeMethods.IsWindowVisible(_hwnd); 393IntPtr hwndParent = Misc.GetParent(_hwnd); 465if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 474Misc.SetFocus(_hwnd); 498Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero); 512Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true); 519Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true); 553if (!Misc.GetClassName(_hwnd).Equals("Button")) 561return Misc.InTheShellProcess(_hwnd) && UnsafeNativeMethods.GetProp(_hwnd, "StartButtonTag") == new IntPtr(304); 565IntPtr hwndParent = Misc.GetParent(_hwnd); 579if (!Misc.GetClassName(_hwnd).Equals("Button")) 584IntPtr hwndParent = Misc.GetParent(_hwnd); 599IntPtr hwndParent = _hwnd; 644int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero); 667if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 669Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindRadioButtonChild), (void*)&radiobuttonChildFound); 698return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd)); 704if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 707Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindSelectedRadioButtonChild), (void*)&selectedRadiobutton);
MS\Internal\AutomationProxies\WindowsComboBox.cs (34)
120if (GetDroppedState (_hwnd)) 126if (GetComboInfo(_hwnd, ref cbInfo)) 141return rcCombo.ToRect(Misc.IsControlRTL(_hwnd)); 150if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentCmboBx")) 252if (GetComboInfo(_hwnd, ref cbInfo)) 255if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 259return new WindowsComboButton(_hwnd, this, (int)ComboChildren.Button); 296if (GetComboInfo(_hwnd, ref cbInfo)) 333if (GetComboInfo(_hwnd, ref cbInfo)) 372Misc.CheckEnabled(_hwnd); 377if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 387IntPtr hwndParent = Misc.GetParent(_hwnd); 390int id = Misc.GetWindowId(_hwnd); 393Misc.ProxySendMessage(hwndParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 415if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 440Misc.CheckEnabled(_hwnd); 442if (GetDroppedState (_hwnd)) 448Expand (_hwnd); 454Misc.CheckEnabled(_hwnd); 456if (!GetDroppedState (_hwnd)) 462Collapse(_hwnd); 469return (GetDroppedState (_hwnd)) ? ExpandCollapseState.Expanded : ExpandCollapseState.Collapsed; 497IntPtr hwndToAsk = IsComboBoxEx32() ? _hwndEx : _hwnd; 628return Misc.ProxyGetText(IsComboBoxEx32() ? _hwndEx : _hwnd); 634IntPtr hwnd = IsComboBoxEx32() ? _hwndEx : _hwnd; 644if (GetComboInfo(_hwnd, ref cbInfo) && cbInfo.stateButton != NativeMethods.STATE_SYSTEM_INVISIBLE) 646return new WindowsComboButton (_hwnd, this, (int) ComboChildren.Button); 656if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList)) 917if (!WindowsComboBox.GetComboInfo(_hwnd, ref cbInfo)) 921if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 948Misc.CheckEnabled(_hwnd); 950if (!WindowsComboBox.GetDroppedState (_hwnd)) 952WindowsComboBox.Expand (_hwnd); 956WindowsComboBox.Collapse (_hwnd);
MS\Internal\AutomationProxies\WindowsEditBox.cs (21)
149for (IntPtr hwnd = _hwnd; 162if (IsInsideOfIPAddress(_hwnd)) 217IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 220return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 228IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 231return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 239IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 242return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 266Misc.CheckEnabled(_hwnd); 290int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 298result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 580return Misc.ProxyGetText(_hwnd, GetTextLength()); 596if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 721if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 853IntPtr hdc = Misc.GetDC(_hwnd); 873Misc.ReleaseDC(_hwnd, hdc); 886return Text(_hwnd); 891IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 901if (WindowsComboBox.GetComboInfo(hwndParent, ref cbInfo) && cbInfo.hwndItem == _hwnd) 911IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 922return WindowsSpinner.IsSpinnerEdit(_hwnd);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (8)
80Misc.SetFocus(_provider._hwnd); 301Misc.SetFocus(_provider._hwnd); 355Misc.SetFocus(_provider._hwnd); 419Misc.SetFocus(_provider._hwnd); 438Misc.SetFocus(_provider._hwnd); 455Misc.SetFocus(_provider._hwnd); 478Misc.SetFocus(_provider._hwnd); 484if (Misc.IsReadingRTL(_provider._hwnd))
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (4)
96Misc.SetFocus(_hwnd); 113if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 118if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 123Misc.SetFocus(_hwnd);
MS\Internal\AutomationProxies\WindowsGrip.cs (4)
48if (IsGripPresent(_hwnd, false)) 51if (Misc.GetClientRectInScreenCoordinates(_hwnd, ref client)) 53NativeMethods.SIZE sizeGrip = GetGripSize(_hwnd, false); 55if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (12)
116return Misc.StripMnemonic(RemoveHTMLAnchorTag(Misc.ProxyGetText(_hwnd))); 201if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 216bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 261return new WindowsHyperlinkItem(_hwnd, this, index); 281return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 400return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 427if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 432if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 441if (!Misc.GetWindowRect(_hwnd, ref BoundingRect)) 497bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 509Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 510Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (12)
117if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 138Misc.ProxySendMessage(_hwnd, NativeMethods.IPM_SETADDRESS, IntPtr.Zero, (IntPtr)unchecked((int)ipV4)); 153return Misc.ProxyGetText(_hwnd, IP_ADDRESS_STRING_LENGTH); 161return !Misc.IsEnabled(_hwnd); 243IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 260IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 351return Misc.ProxyGetText(_hwnd); 363if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 381Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture))); 389string s = WindowsEditBox.Text(_hwnd); 402return !SafeNativeMethods.IsWindowEnabled(_hwnd); 476return WindowsIPAddress.Create(Misc.GetParent(_hwnd), 0, 0);
MS\Internal\AutomationProxies\WindowsListBox.cs (52)
151else if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 154IScrollProvider scroll = NonClientArea.Create(_hwnd, 0) as IScrollProvider; 171return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 180if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 288Misc.GetClientRectInScreenCoordinates(_hwnd, ref listboxrect); 291int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 306int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero); 342if (ListboxItem.IsSelected(_hwnd, itemPos)) 381return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0; 423return new ListboxItem (_hwnd, this, index); 431return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero); 544if (i != skipItem && ListboxItem.IsSelected(_hwnd, i)) 556int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero); 567for (i = 0, count = Length; i < count && !ListboxItem.IsSelected (_hwnd, i); i++) 580if (i != skipItem && ListboxItem.IsSelected (_hwnd, i)) 597return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR; 610if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 682else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 720int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 724if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentLstBox")) 731return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen); 735string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(_item), iTextLen); 762if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 769bool itemSelected = IsSelected (_hwnd, _item); 819if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 825if (ListboxItem.IsSelected (_hwnd, _item) && !_listBox.IsParentedByCombo()) 871if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 876if (!IsSelected(_hwnd, _item)) 891if (!UnSelect(_hwnd, _item)) 902return ListboxItem.IsSelected (_hwnd, _item); 922if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 927if (!WindowScroll.IsScrollable(_hwnd)) 933Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 944if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 948if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 1007return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(_item), new IntPtr(0)) != NativeMethods.LB_ERR; 1011return Select (_hwnd, _item, false); 1032return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1036return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1053Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(_item), ref itemRect); 1054return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty; 1067_windowsForms = WindowsFormsHelper.GetControlState(_hwnd); 1122Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(_item)); 1127Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1137int listBoxStyle = Misc.GetWindowStyle(_hwnd); 1141int idListBox = Misc.GetWindowId(_hwnd); 1145IntPtr hwndListBoxParent = Misc.GetParent(_hwnd); 1149hwndListBoxParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 1157Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1161int id = Misc.GetWindowId(_hwnd); 1165Misc.ProxySendMessageInt(combo._hwnd, NativeMethods.WM_COMMAND, wParam, _hwnd);
MS\Internal\AutomationProxies\WindowsListView.cs (82)
87WinEventTracker.AddToNotificationList (_hwnd, new WinEventTracker.ProxyRaiseEvents (WindowsListView.GroupSpecificEvents), _groupEvents, 3); 171(IsDetailMode (_hwnd) || 172IsImplementingGrid (_hwnd) && GetItemCount (_hwnd) > 0)) 183if (iid == TablePattern.Pattern && IsDetailMode (_hwnd)) 197bool hasGroup = IsGroupViewEnabled (_hwnd); 204count = GetItemCount (_hwnd); 231_groupsCollection.EnsureCreation (_hwnd); 233GroupManager manager = _groupsCollection[_hwnd]; 265if (IsGroupViewEnabled (_hwnd)) 268_groupsCollection.EnsureCreation (_hwnd); 271GroupManager manager = _groupsCollection [_hwnd]; 310int count = GetItemCount (_hwnd); 328bool hasGroup = IsGroupViewEnabled (_hwnd); 329int itemCount = GetItemCount(_hwnd); 341_groupsCollection.EnsureCreation(_hwnd); 343GroupManager manager = _groupsCollection[_hwnd]; 363bool hasGroup = IsGroupViewEnabled (_hwnd); 370_groupsCollection.EnsureCreation (_hwnd); 372GroupManager manager = _groupsCollection [_hwnd]; 387int count = GetItemCount (_hwnd); 397if (PtInListViewHeader (x, y) || !PtInClientRect (_hwnd, x, y)) 403if (IsGroupViewEnabled (_hwnd)) 405_groupsCollection.EnsureCreation (_hwnd); 408GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 417ProxyFragment group = new WindowsListViewGroup (_hwnd, this, groupID); 423NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 430else if (hitTest.flags == NativeMethods.LVHT_NOWHERE && IsDetailMode(_hwnd)) 448hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 465if (IsGroupViewEnabled (_hwnd)) 467_groupsCollection.EnsureCreation (_hwnd); 468return WindowsListViewGroup.GetFocusInGroup (_hwnd, this); 472int index = GetItemNext(_hwnd, -1, NativeMethods.LVNI_FOCUSED); 495IntPtr hwndHeader = ListViewGetHeader (_hwnd); 509WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents, 1); 524IntPtr hwndHeader = ListViewGetHeader (_hwnd); 538WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents, 1); 551int count = GetItemCount (_hwnd); 552int countSelection = MultiSelected(_hwnd) ? GetSelectedItemCount(_hwnd) : 1; 563for (int itemPos = GetItemNext(_hwnd, -1, NativeMethods.LVNI_SELECTED); itemPos != -1; itemPos = GetItemNext(_hwnd, itemPos, NativeMethods.LVNI_SELECTED)) 583return MultiSelected (_hwnd); 604if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 609WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 615if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 621int size = ApproximateViewRect (_hwnd); 640fScrollSuccess = Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 647if (fScrollSuccess && (((int)horizontalPercent != (int)ScrollPattern.NoScroll && (int)horizontalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd)) 648|| ((int)verticalPercent != (int)ScrollPattern.NoScroll && (int)verticalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd)))) 656Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 676return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 686return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 696return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 706return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 716return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 725return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 737int maxRow = GetRowCount (_hwnd); 738int maxColumn = GetColumnCount (_hwnd); 751if (IsDetailMode (_hwnd)) 763return GetRowCount (_hwnd); 771return GetColumnCount (_hwnd); 789IntPtr hwndHeader = ListViewGetHeader (_hwnd); 854return new int [] { ListViewGetView (_hwnd) }; 861return ListViewGetView (_hwnd); 1544return CheckBoxes (_hwnd) ? new int [] { NativeMethods.EventObjectNameChange, NativeMethods.EventObjectStateChange } : new int [] { NativeMethods.EventObjectNameChange }; 1572return new WindowsListViewGroup (_hwnd, this, groupID); 1581bool hasGroup = IsGroupViewEnabled (_hwnd); 1583if ((!hasGroup) && GetItemCount(_hwnd) > 0) 1591_groupsCollection.EnsureCreation(_hwnd); 1593GroupManager manager = _groupsCollection[_hwnd]; 1609return CreateListViewItemOrStartMenuItem(new WindowsListViewGroup(_hwnd, this, groupId), item); 1614return new WindowsListViewGroup (_hwnd, this, item); 1628ProxyFragment proxyFragment = new ListViewItemStartMenu(_hwnd, parent, item, AccessibleObject); 1637return new ListViewItem(_hwnd, parent, item); 1644string className = Misc.GetClassName(Misc.GetParent(_hwnd)); 1668if (!Misc.GetScrollBarInfo(_hwnd, scrollBar, ref scrollBarInfo) || 1684if (!Misc.GetScrollInfo(_hwnd, sbFlag, ref si) || 1708return new ListViewSubItem (_hwnd, lvItem, column, row); 1715int itemCount = GetItemCount (_hwnd); 1718if (IsListMode (_hwnd)) 1832IntPtr hwndHeader = ListViewGetHeader (_hwnd);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (29)
58else if (iid == ExpandCollapsePattern.Pattern && WindowsListView.IsGroupViewEnabled(_hwnd)) 71GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 102return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 113return XSendMessage.GetItemText(_hwnd, group); 127GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 159XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 180GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 217GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 234GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 247XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 286NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest (_hwnd, pt); 296return new ListViewItem (_hwnd, this, hitTest.iItem); 307XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 312GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 329int groupIndex = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero); 338bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 362int maxRow = GetRowCount (_hwnd, ID); 363int maxColumn = GetColumnCount(_hwnd, ID); 375if (WindowsListView.IsDetailMode (_hwnd)) 387return GetRowCount (_hwnd, ID); 395return GetColumnCount (_hwnd, ID); 405if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 418return IsCollapsed(_hwnd, _groupID); 592return new ListViewItem (_hwnd, this, index); 614if (!XSendMessage.SetGroupInfo(_hwnd, group)) 625GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 632return new ListViewSubItem (_hwnd, lvItem, column, lvitemIndex); 644GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 828return new ListViewGroupSubsetLink(_hwnd, this, item, _groupID);
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (4)
78XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 79Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2); 95XSendMessage.GetGroupInfo(_hwnd, ref groupInfo); // ignore return code. 111return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_SUBSET);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (83)
60if (iid == InvokePattern.Pattern && WindowsListView.ListViewInvokable(_hwnd)) 70if (iid == ValuePattern.Pattern && WindowsListView.ListViewEditable (_hwnd)) 75if (iid == GridItemPattern.Pattern && IsImplementingGrid (_hwnd)) 80if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd, _item)) 85if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 112WindowsListView._groupsCollection.EnsureCreation (_hwnd); 114GroupManager manager = WindowsListView._groupsCollection[_hwnd]; 134if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType()))) 136if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRectangle, 2)) 148if (WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_BOUNDS, out itemRectangle)) 191string text = GetText(_hwnd, _item, 0); 214return WindowsListView.SetItemFocused (_hwnd, _item); 234&& IsItemWithCheckbox(_hwnd, _item)) 258if (WindowsListView.IsDetailMode (_hwnd)) 261int countCol = GetSubItemCount (_hwnd); 278if (IsItemWithCheckbox(_hwnd, _item) && item == 0) 282else if (WindowsListView.IsDetailMode (_hwnd)) 284int countCol = GetSubItemCount (_hwnd); 297if (IsItemWithCheckbox(_hwnd, _item)) 301else if (WindowsListView.IsDetailMode(_hwnd)) 303int countCol = GetSubItemCount (_hwnd); 316if (WindowsListView.IsDetailMode (_hwnd)) 318int countCol = GetSubItemCount (_hwnd); 326if (IsItemWithCheckbox(_hwnd, _item)) 338if (IsItemWithCheckbox (_hwnd, _item)) 340NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _item); 344return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 348if (WindowsListView.IsDetailMode (_hwnd)) 351return ListViewSubItem.ElementProviderFromPoint (_hwnd, this, _item, x, y); 363int columns = ListViewItem.GetSubItemCount (_hwnd); 366int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 385if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 391if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd, _item)) 397WindowsListView.UnselectAll (_hwnd); 400if (!WindowsListView.SelectItem(_hwnd, _item)) 410if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 416if (WindowsListView.IsItemSelected (_hwnd, _item)) 422if (!WindowsListView.MultiSelected(_hwnd)) 429if (selectionRequired || WindowsListView.GetSelectedItemCount(_hwnd) > 0) 438if (!WindowsListView.SelectItem(_hwnd, _item)) 448if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 454if (!WindowsListView.IsItemSelected (_hwnd, _item)) 460if (!WindowsListView.MultiSelected (_hwnd)) 474if (!WindowsListView.UnSelectItem(_hwnd, _item)) 485return WindowsListView.IsItemSelected (_hwnd, _item); 517if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 522if (WindowsListView.Scrollable (_hwnd)) 525WindowsListView.EnsureVisible (_hwnd, _item, true); 546if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 551SetValue(val, _hwnd, _item); 559return ListViewItem.GetText (_hwnd, _item, 0); 568return !WindowsListView.ListViewEditable (_hwnd); 581if (WindowsListView.IsGroupViewEnabled (_hwnd)) 587if (WindowsListView.IsListMode (_hwnd)) 589int itemCount = WindowsListView.GetItemCount (_hwnd); 590int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 596int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 606if (WindowsListView.IsGroupViewEnabled (_hwnd)) 612if (WindowsListView.IsListMode (_hwnd)) 614int itemCount = WindowsListView.GetItemCount (_hwnd); 615int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 620int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 658if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 664if (!WindowsListView.Scrollable(_hwnd)) 670WindowsListView.EnsureVisible(_hwnd, _item, false); 842return WindowsListView.IsItemFocused (_hwnd, _item); 850IntPtr hwndHeader = WindowsListView.ListViewGetHeader(_hwnd); 856&& Misc.GetClientRectInScreenCoordinates(_hwnd, ref listViewRect)) 887return new ListViewSubItem (_hwnd, this, index, _item); 892return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 919if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 924if (WindowsListView.IsDetailMode (_hwnd) && !WindowsListView.FullRowSelect (_hwnd)) 930if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 940if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 954Misc.MouseClick(clickPoint.x, clickPoint.y, !WindowsListView.ListViewSingleClickActivate(_hwnd)); 982int groupID = GetGroupID (_hwnd, _item); 987GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 996int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID); 1015int groupID = GetGroupID (_hwnd, _item); 1020GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 1029int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (12)
64return ListViewCheckBoxRect(_hwnd, _listviewItem).ToRect(false); 74NativeMethods.Win32Rect itemRect = ListViewCheckBoxRect(_hwnd, _listviewItem); 80if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect)) 101return WindowsListView.GetItemToolTipText(_hwnd); 110string name = ListViewItem.GetText(_hwnd, _listviewItem, 0); 213ListViewItem.CheckState current = (ListViewItem.CheckState) WindowsListView.GetCheckedState (_hwnd, _listviewItem); 240if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 245Misc.SetFocus(_hwnd); 247NativeMethods.Win32Rect rc = ListViewCheckBoxRect(_hwnd, _listviewItem); 250if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 253Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 254Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (9)
48if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 59if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 78bool isVerticalScroll = IsScrollBarVertical(_hwnd, _sbFlag); 79if (isVerticalScroll && WindowsListView.InReportView (_hwnd)) 81Misc.SetScrollPos(_hwnd, _sbFlag, pos, true); 86int size = WindowsListView.ApproximateViewRect (_hwnd); 105if (WindowsListView.Scroll (_hwnd, (IntPtr) dx, (IntPtr) dy)) 110if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 130WindowsListView.Scroll (_hwnd, (IntPtr) dx, (IntPtr) dy);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (26)
56if (iid == ValuePattern.Pattern && _item == 0 && WindowsListView.ListViewEditable (_hwnd)) 80if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent, _item, lvir, out itemRectangle)) 88if (WindowsListView.FullRowSelect(_hwnd) && !WindowsListView.HasJustifyColumnsExStyle(_hwnd) && 89!WindowsListView.IsIconView(_hwnd) && _item == 0 && 1 < ListViewItem.GetSubItemCount(_hwnd)) 93if (!WindowsListView.GetSubItemRect(_hwnd, _itemParent, 1, NativeMethods.LVIR_BOUNDS, out itemRectangle1)) 99if (Misc.IsControlRTL(_hwnd)) 109if (ListViewItem.IsItemWithCheckbox (_hwnd, _itemParent)) 111NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _itemParent); 114if (Misc.IsControlRTL(_hwnd)) 168IntPtr ancestor = _hwnd; 190return WindowsListView.GetItemToolTipText(_hwnd); 199string name = ListViewItem.GetText(_hwnd, _itemParent, _item); 208return WindowsListView.SetItemFocused (_hwnd, this._itemParent); 218if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 223ListViewItem.SetValue (val, _hwnd, _itemParent); 231return ListViewItem.GetText (_hwnd, _itemParent, _item); 239return !WindowsListView.ListViewEditable (_hwnd); 252if (!WindowsListView.IsGroupViewEnabled (_hwnd)) 260int groupID = ListViewItem.GetGroupID (_hwnd, _itemParent); 264GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 327IntPtr hwndHeader = WindowsListView.ListViewGetHeader (_hwnd); 373if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 375int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 379return WindowsListView.IsItemFocused (_hwnd, _itemParent);
MS\Internal\AutomationProxies\WindowsMenu.cs (31)
84_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 98_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 138if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 339return new int[] { 1, unchecked((int)(long)_hwnd), unchecked((int)(long)_hmenu) }; 498return new MenuItem(_hwnd, this, index, _hmenu, _type); 801if (!GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 813if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 818if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 831if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_MENU, 0, out mbi)) 1214if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1248if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 1257if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 1262if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 1275if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1384if (!Misc.IsEnabled(_hwnd)) 1426if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1445if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd) 2020if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2065if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2089hwndSubMenu != _hwnd; 2119Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_KEYMENU, (IntPtr)Convert.ToInt32(' ')); 2227if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2241if (Misc.ProxyGetGUIThreadInfo(0, out gui) && _hwnd == gui.hwndActive) 2257return Misc.SetFocus(_hwnd); 2579if (_hwnd == IntPtr.Zero) 2585using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 2644return SafeNativeMethods.IsWindowEnabled(_hwnd); 2662return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2677return new MenuItem(_hwnd, _parent, nextItem, _hmenu, _menuType); 2713if (new MenuItem (_hwnd, this._parent, i, _hmenu, _menuType).HotKey == chHotKey) 2928return _hwnd;
MS\Internal\AutomationProxies\WindowsProgressbar.cs (3)
155int cur = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 156int min = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, new IntPtr(1), IntPtr.Zero); 157int max = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsRebar.cs (10)
124if (!Misc.GetWindowRect(_hwnd, ref rebarRect)) 187return new RebarBandItem (_hwnd, this, index); 194return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero); 207return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 280return GetBoundingRectangle (_hwnd, _item); 289IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 290return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 375if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 380Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 436if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (6)
163if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 174if (Misc.IsBitSet(WindowStyle, NativeMethods.ES_NUMBER) && !WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 189int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 196result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 561return Misc.ProxyGetText(_hwnd); 681IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (6)
65Misc.SetFocus(_pattern._hwnd); 251Misc.SetFocus(_pattern._hwnd); 269Misc.SetFocus(_pattern._hwnd); 301Misc.SetFocus(_pattern._hwnd); 323Misc.SetFocus(_pattern._hwnd); 347Misc.SetFocus(_pattern._hwnd);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (28)
119return (iid == RangeValuePattern.Pattern && WindowScroll.Scrollable (_hwnd, _sbFlag) && HasValuePattern (_hwnd, _sbFlag)) ? this : null; 140if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi)) 160if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_parent._hwnd))) 191return SafeNativeMethods.IsWindowVisible(_hwnd); 200if (SafeNativeMethods.IsWindowVisible(_hwnd) && 215return IsEnabled() && Misc.IsEnabled(_hwnd); 219return IsScrollBarVertical(_hwnd, _sbFlag) ? OrientationType.Vertical : OrientationType.Horizontal; 263return IsScrollBarVertical(_hwnd, _sbFlag) 283if (item == ScrollBarItem.UpArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 303if (item == ScrollBarItem.DownArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 330NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect(WindowsScrollBarBits.GetBoundingRectangle(_hwnd, this, item, _sbFlag)); 334return new WindowsScrollBarBits (_hwnd, this, (int) item, _sbFlag); 364return !Misc.IsEnabled(_hwnd) || !HasValuePattern(_hwnd, _sbFlag); 522if (_sbFlag != NativeMethods.SB_CTL || Misc.GetScrollBarInfo(_hwnd, NativeMethods.OBJID_CLIENT, ref sbi)) 524return new WindowsScrollBarBits (_hwnd, this, (int) index, _sbFlag); 556string classname = Misc.GetClassName(_hwnd); 575if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 586if ((Environment.OSVersion.Version.Major < 6) && (_sbFlag == NativeMethods.SB_HORZ) && (Misc.IsControlRTL(_parent._hwnd))) 617if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 628if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 666string classname = Misc.GetClassName(_hwnd); 689Misc.SetScrollPos(_hwnd, _sbFlag, val, true); 695IsScrollBarVertical(_hwnd, _sbFlag) ? NativeMethods.WM_VSCROLL : NativeMethods.WM_HSCROLL; 700Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 702Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 739if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (10)
112return SafeNativeMethods.IsWindowVisible(_hwnd); 127return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem) _item, _sbFlag); 148if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 178if (WindowsScrollBar.IsScrollBarVertical(_hwnd, _sbFlag)) 236if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(parent._parent._hwnd))) 517IntPtr parentHwnd = _sbFlag == NativeMethods.SB_CTL ? Misc.GetWindowParent(_hwnd) : _hwnd; 545if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 566Misc.ProxySendMessage(parentHwnd, msg, (IntPtr)wParam, (IntPtr)(parentHwnd == _hwnd ? IntPtr.Zero : _hwnd));
MS\Internal\AutomationProxies\WindowsSlider.cs (16)
138NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SliderItem.GetBoundingRectangle (_hwnd, item, _fHorizontal)); 157if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 168IntPtr parent = Misc.GetParent(_hwnd); 246return new SliderItem (_hwnd, this, (int) item, _fHorizontal); 261int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 266int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 284Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_SETPOS, new IntPtr(1), new IntPtr(val)); 291return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero); 299return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero); 307return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 315return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero); 400return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem) _item, _fHorizontal); 409IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 410return Misc.GetItemToolTipText(_hwnd, hwndToolTip, 0); 431if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 440Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsStatic.cs (2)
133return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 152return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd));
MS\Internal\AutomationProxies\WindowsStatusBar.cs (17)
106if (hwndChild == IntPtr.Zero || hwndChild == _hwnd) 108hwndChild = GetChildHwnd(_hwnd, accChild.Location); 111if(hwndChild != IntPtr.Zero && hwndChild != _hwnd) 118return new WindowsStatusBarPane(_hwnd, this, index, accChild); 142return Misc.ProxyGetText(_hwnd); 171return item + 1 < count ? CreateStatusBarPane(item + 1) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, -1) : null); 202return Count > 0 ? CreateStatusBarPane(0) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, GripItemID) : null); 211return StatusBarGrip.Create(_hwnd, this, GripItemID); 224NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (WindowsStatusBarPane.GetBoundingRectangle (_hwnd, item)); 235NativeMethods.Win32Rect rc = StatusBarGrip.GetBoundingRectangle (_hwnd); 238ProxySimple grip = StatusBarGrip.Create(_hwnd, this, -1); 308hwndChild = GetChildHwnd(_hwnd, accChild.Location); 337return Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETPARTS, IntPtr.Zero, IntPtr.Zero); 460return GetBoundingRectangle (_hwnd, _item); 597int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero); 602return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len); 775return GetBoundingRectangle(_hwnd).ToRect(false);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (30)
158if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 162index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 178int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 245IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor (_hwnd, NativeMethods.GA_PARENT); 314if (!XSendMessage.GetItem(_hwnd, index, ref item)) 326return new HeaderItem (_hwnd, this, index); 334return HeaderItemCount (_hwnd); 430IntPtr hwndParent = Misc.GetParent(_hwnd); 464if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 482Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 483Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 524if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 526int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 546int index = OrderToIndex (_hwnd, _item); 555return XSendMessage.GetItemText(_hwnd, index, hdi); 563int index = OrderToIndex (_hwnd, _item); 569result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 574if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2)) 587if (Misc.IsLayoutRTL(_hwnd)) 638if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 669return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1); 680if (XSendMessage.GetItem(_hwnd, _item, ref item)) 694int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 709if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 718Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item); 725Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 726Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 735if (Misc.GetFocusedWindow().Equals(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (53)
48_fIsContent = IsValidControl(_hwnd); 147return IsValidControl(_hwnd); 183int count = GetItemCount(_hwnd); 206int count = GetItemCount(_hwnd); 229int count = GetItemCount(_hwnd); 242int count = GetItemCount(_hwnd); 260if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1)) 277index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 291int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero); 293if (focusIndex >= 0 && focusIndex < GetItemCount(_hwnd)) 368for (int i = 0, c = GetItemCount(_hwnd); i < c; i++) 370if (sTitle == WindowsTabItem.GetName(_hwnd, i, true)) 389if (!WindowsTab.SupportMultipleSelection (_hwnd)) 391int selectedItem = WindowsTabItem.GetCurrentSelectedItem(_hwnd); 433return SupportMultipleSelection (_hwnd); 453if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 477if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 518Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 578if (!Misc.GetWindowRect(_hwnd, ref viewable)) 676return new WindowsTabItem(_hwnd, this, index, _windowsForms == WindowsFormsHelper.FormControlState.True); 697Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 702return GetUpDownHwnd(_hwnd) != IntPtr.Zero; 751return GetUpDownHwnd(_hwnd); 854Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 913_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 956return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd, _item)); 960return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 971IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 972return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 982if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 991return GetName(_hwnd, _item, _windowsForms == WindowsFormsHelper.FormControlState.True); 1008Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1063if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1083if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1101if (WindowsTab.SupportMultipleSelection(_hwnd) == true) 1126if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1138if (WindowsTab.SupportMultipleSelection(_hwnd) == true) 1154Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero); 1167if (!WindowsTab.SupportMultipleSelection(_hwnd)) 1169int selectedItem = GetCurrentSelectedItem(_hwnd); 1180if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1208if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1260return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1277if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1282return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty; 1287return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd)); 1302if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1304Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1305Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1311Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1321IntPtr hwndParent = _hwnd; 1330string sName = WindowsTabItem.GetName(_hwnd, _item, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (12)
58return Misc.GetTitleBarRect(_hwnd); 66return new int [] { 4, unchecked((int)(long)_hwnd), _item }; 74return Misc.ProxyGetText(_hwnd); 112int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y)); 133WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 161return WindowsMenu.CreateSystemMenu (_hwnd, this); 167return new TitleBarButton (_hwnd, this, item); 199Misc.ProxyGetTitleBarInfo(_hwnd, out ti); 359Rect[] rects = Misc.GetTitlebarRects(_hwnd); 403if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 432Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero); 446Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (30)
211NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (ToolbarItem.GetBoundingRectangle (_hwnd, item)); 229int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero); 233Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, NativeMethods.CHILD_SELF); 239return new WindowsToolbarAsMenu(_hwnd, this, focusIndex, acc); 243return new WindowsToolbar(_hwnd, this, focusIndex); 258string name = Misc.ProxyGetText(_hwnd); 294if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 300if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0) 302Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, item + 1); 307return new ToolbarItemAsMenuItem(_hwnd, this, item, tbb.idCommand, acc); 311return new ToolbarItem(_hwnd, this, item, tbb.idCommand); 330return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero); 363if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 369bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0; 370int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero); 381IntPtr hwndParent = Misc.GetParent(_hwnd); 429if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 452return GetBoundingRectangle(_hwnd, _item); 469return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0; 515Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 577return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 599int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero); 602return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 625if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 636IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 637return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _idCommand); 643if (!SafeNativeMethods.IsWindowEnabled(_hwnd) 644|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 651if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 678if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONCHECKED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
74if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 80if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
MS\Internal\AutomationProxies\WindowsTooltip.cs (2)
183string className = Misc.ProxyGetClassName(_hwnd); 196return Misc.ProxyGetText(_hwnd);
MS\Internal\AutomationProxies\WindowsTreeView.cs (79)
157IntPtr hNext = GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 160return new TreeViewItem (_hwnd, this, hNext, (int) TVItem.TopLevel); 184IntPtr hPrev = GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 186return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null; 190IntPtr hChild = GetRoot (_hwnd); 197for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 202return new TreeViewItem (_hwnd, this, hChild, (int) TVItem.TopLevel); 213hChild = GetRoot (_hwnd); 234IntPtr hChild = GetRoot (_hwnd); 239for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 253IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 264IntPtr treeItem = GetSelection (_hwnd); 281IntPtr treeItem = GetSelection(_hwnd); 304return (IntPtr.Zero != GetSelection (_hwnd)); 377return new TreeViewItem (_hwnd, this, hItem, depth); 382return CreateParents (_hwnd, hItem); 747return IsItemExpanded (_hwnd, _hItem) ? NextSibling (child) : null; 756return IsItemExpanded (_hwnd, _hItem) ? PreviousSibling (child) : null; 763return IsItemExpanded (_hwnd, _hItem) ? FirstChild () : null; 770return IsItemExpanded (_hwnd, _hItem) ? LastChild () : null; 791else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 814if (_nativeAcc == null && System.Environment.OSVersion.Version.Major >= 6 && Misc.IsWindowInGivenProcess(_hwnd, "explorer")) 817_nativeAcc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, childId); 837return WindowsTreeView.GetItemRect(_hwnd, _hItem, true).ToRect(false); 846NativeMethods.Win32Rect itemRect = GetItemRect(_hwnd, _hItem, true); 849if (!Misc.IsItemVisible(_hwnd, ref itemRect)) 865IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 866return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 927return WindowsTreeView.SelectItem (_hwnd, _hItem); 943return new int [4] { ProxySimple.Win32ProviderRuntimeIdBase, unchecked((int)(long)_hwnd), highPart, lowPart }; 947return new int[3] { ProxySimple.Win32ProviderRuntimeIdBase, (int)_hwnd, (int)_hItem }; 959if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 979if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 990if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1008if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero) 1015if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 1025if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1075if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1095WindowsTreeView.Expand (_hwnd, _hItem); 1104if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1120WindowsTreeView.Collapse (_hwnd, _hItem); 1146if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1153if (!WindowsTreeView.SetItemText(_hwnd, _hItem, val)) 1186if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1199WindowsTreeView.SetCheckState(_hwnd, _hItem, GetToggleState() != ToggleState.On); 1221if (!WindowScroll.IsScrollable(_hwnd)) 1226Misc.SetFocus(_hwnd); 1230Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem); 1283int selected = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TVM_GETITEMSTATE, _hItem, new IntPtr(NativeMethods.TVIS_SELECTED)); 1306if (!WindowsTreeView.IsItemExpanded (_hwnd, current._hItem)) 1318IntPtr hNext = WindowsTreeView.GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 1320return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1328IntPtr hPrev = WindowsTreeView.GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 1330return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1336IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1338return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1344if (!IsItemExpanded (_hwnd, _hItem)) 1349IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1354for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild)) 1359return new TreeViewItem(_hwnd, this, hChild, _item + 1); 1368bool expanded = WindowsTreeView.IsItemExpanded (_hwnd, _hItem); 1376bool hasChildren = WindowsTreeView.TreeViewItem_HasChildren (_hwnd, _hItem); 1405state = (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1456NativeMethods.Win32Rect rectItem = WindowsTreeView.GetItemRect(_hwnd, _hItem, true); 1467if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1482int selected = WindowsTreeView.GetItemState(_hwnd, _hItem, NativeMethods.TVIS_SELECTED); 1502isCheckbox = WindowsTreeView.CheckState.NoCheckbox != (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1531return WindowsTreeView.GetItemText (_hwnd, _hItem); 1539Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1540Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1546if (WindowsTreeView.GetItem(_hwnd, _hItem, NativeMethods.TVIF_IMAGE | NativeMethods.TVIF_STATE, out treeItem)) 1567IntPtr address = UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr"); 1573int numStates = unchecked((int)UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapCount")); 1586using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 1628return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero; 1638int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (21)
94return new SpinButtonItem(_hwnd, IsSpinnerElement()? _parent : this, (int)item); 119if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd) && IsWinformUpdown(_hwnd)) 185NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SpinButtonItem.GetBoundingRectangle (_hwnd, item)); 204if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 224Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 227Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 290IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 341int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 368IntPtr hwndBuddy = HwndBuddy(_hwnd); 378int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 392int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 465return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)_item); 509if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 524if (IsHorizontal(_hwnd) && Misc.IsLayoutRTL(_hwnd)) 530Rect rc = GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)item); 533if (!Misc.GetWindowRect(_hwnd, ref updownRect)) 543Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, center); 544Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, center); 621IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WinFormsSpinner.cs (4)
308return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent, _item); 426return _elEdit._hwnd == hwnd;