1 write to _hwnd
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
59_hwnd = hwnd;
848 references to _hwnd
UIAutomationClientSideProviders (848)
MS\Internal\AutomationProxies\NonClientArea.cs (27)
208int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 230WindowsTitleBar tb = new WindowsTitleBar(_hwnd, this, 0); 304return new int [] { 1, unchecked((int)(long)_hwnd) }; 310if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 355WindowScroll.SetScrollPercent (_hwnd, horizontalPercent, verticalPercent, true); 361WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 369return (double) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 378return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 387return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 396return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 405return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 414return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 460if (WindowsScrollBar.HasHorizontalScrollBar (_hwnd)) 464if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 465return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 467return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 472if (WindowsScrollBar.HasVerticalScrollBar (_hwnd)) 476if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 477return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 479return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 486if (WindowsTitleBar.HasTitleBar (_hwnd)) 488return new WindowsTitleBar (_hwnd, this, (int) item); 503if (WindowsGrip.IsGripPresent(_hwnd, false)) 505return new WindowsGrip(_hwnd, this, (int)item); 538IntPtr menu = UnsafeNativeMethods.GetMenu(_hwnd); 541menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 578if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (15)
87WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents); 116WinEventTracker.RemoveToNotificationList(_hwnd, aEvents, null); 127return PtInClientRect (_hwnd, x, y) ? this : null; 137accessKey = GetLabelAccessKey(_hwnd); 151if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 153string sPersistentID = WindowsFormsHelper.WindowsFormsID (_hwnd); 161if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 180IntPtr label = Misc.GetLabelhwnd(_hwnd); 189name = Misc.ProxyGetText(_hwnd); 214_controlLabel = Misc.GetLabelhwnd(_hwnd); 227if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 232IntPtr hwndParent = Misc.GetParent(_hwnd); 259int idChild = Misc.GetWindowId(_hwnd); 260string text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, idChild); 263text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, 0);
MS\Internal\AutomationProxies\ProxySimple.cs (22)
91if (_hwnd == IntPtr.Zero) 98if (!Misc.GetWindowRect(_hwnd, ref controlRectangle)) 151id[1] = _hwnd.ToInt32(); 165if (_hwnd == IntPtr.Zero || (GetParent() != null && GetParent()._hwnd == _hwnd)) 170return AutomationInteropProvider.HostProviderFromHandle(_hwnd); 205return Misc.IsEnabled(_hwnd); 216Misc.GetWindowThreadProcessId(_hwnd, out pid); 238return Misc.GetFocusedWindow() == _hwnd ? IsFocused() : false; 258return WindowsFormsHelper.IsWindowsFormsControl(_hwnd) ? "WinForm" : "Win32"; 267if (Misc.GetFocusedWindow() == _hwnd && IsFocused()) 273if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 339string sRawName = Misc.GetControlName(_hwnd, false); 388EventManager.DispatchEvent(this, _hwnd, eventId, idProp, idObject); 528if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 578Misc.GetClientRectInScreenCoordinates(_hwnd, ref rcOutside); 601return ClickablePoint.GetPoint(_hwnd, listIn, listOut, ref pt); 637_IAccessible = Accessible.AccessibleObjectFromWindow(_hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK ? acc.IAccessible : null; 653return _hwnd; 662return Misc.GetWindowStyle(_hwnd); 671return Misc.GetWindowExStyle(_hwnd);
MS\Internal\AutomationProxies\WindowsAltTab.cs (8)
36GetAltTabInfo(_hwnd, 0, ref _altTabInfo, null); 126if (Misc.MapWindowPoints(System.IntPtr.Zero, _hwnd, ref pt, 1)) 130if(Misc.GetClientRect(_hwnd, ref clientRect)) 191altTabItem = new WindowsAltTabItem(_hwnd, this, item); 210if (GetAltTabInfo(_hwnd, -1, ref altTabInfo, null)) 341return GetBoundingRect().ToRect(Misc.IsControlRTL(_hwnd)); 354if (WindowsAltTab.GetAltTabInfo(_hwnd, _item, ref altTabInfo, itemText)) 386if(!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2))
MS\Internal\AutomationProxies\WindowsButton.cs (22)
252if (!WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms) && IsStartButton()) 257return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 263return SafeNativeMethods.IsWindowVisible(_hwnd); 389IntPtr hwndParent = Misc.GetParent(_hwnd); 461if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 470Misc.SetFocus(_hwnd); 494Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero); 508Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true); 515Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true); 549if (!Misc.GetClassName(_hwnd).Equals("Button")) 557return Misc.InTheShellProcess(_hwnd) && UnsafeNativeMethods.GetProp(_hwnd, "StartButtonTag") == new IntPtr(304); 561IntPtr hwndParent = Misc.GetParent(_hwnd); 575if (!Misc.GetClassName(_hwnd).Equals("Button")) 580IntPtr hwndParent = Misc.GetParent(_hwnd); 595IntPtr hwndParent = _hwnd; 640int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero); 663if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 665Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindRadioButtonChild), (void*)&radiobuttonChildFound); 694return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd)); 700if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 703Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindSelectedRadioButtonChild), (void*)&selectedRadiobutton);
MS\Internal\AutomationProxies\WindowsComboBox.cs (34)
119if (GetDroppedState (_hwnd)) 125if (GetComboInfo(_hwnd, ref cbInfo)) 140return rcCombo.ToRect(Misc.IsControlRTL(_hwnd)); 149if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentCmboBx")) 251if (GetComboInfo(_hwnd, ref cbInfo)) 254if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 258return new WindowsComboButton(_hwnd, this, (int)ComboChildren.Button); 295if (GetComboInfo(_hwnd, ref cbInfo)) 330if (GetComboInfo(_hwnd, ref cbInfo)) 367Misc.CheckEnabled(_hwnd); 372if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 382IntPtr hwndParent = Misc.GetParent(_hwnd); 385int id = Misc.GetWindowId(_hwnd); 388Misc.ProxySendMessage(hwndParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 410if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 435Misc.CheckEnabled(_hwnd); 437if (GetDroppedState (_hwnd)) 443Expand (_hwnd); 449Misc.CheckEnabled(_hwnd); 451if (!GetDroppedState (_hwnd)) 457Collapse(_hwnd); 464return (GetDroppedState (_hwnd)) ? ExpandCollapseState.Expanded : ExpandCollapseState.Collapsed; 492IntPtr hwndToAsk = IsComboBoxEx32() ? _hwndEx : _hwnd; 623return Misc.ProxyGetText(IsComboBoxEx32() ? _hwndEx : _hwnd); 629IntPtr hwnd = IsComboBoxEx32() ? _hwndEx : _hwnd; 639if (GetComboInfo(_hwnd, ref cbInfo) && cbInfo.stateButton != NativeMethods.STATE_SYSTEM_INVISIBLE) 641return new WindowsComboButton (_hwnd, this, (int) ComboChildren.Button); 651if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList)) 909if (!WindowsComboBox.GetComboInfo(_hwnd, ref cbInfo)) 913if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 940Misc.CheckEnabled(_hwnd); 942if (!WindowsComboBox.GetDroppedState (_hwnd)) 944WindowsComboBox.Expand (_hwnd); 948WindowsComboBox.Collapse (_hwnd);
MS\Internal\AutomationProxies\WindowsEditBox.cs (21)
148for (IntPtr hwnd = _hwnd; 161if (IsInsideOfIPAddress(_hwnd)) 216IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 219return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 227IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 230return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 238IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 241return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 265Misc.CheckEnabled(_hwnd); 289int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 297result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 579return Misc.ProxyGetText(_hwnd, GetTextLength()); 595if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 720if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 852IntPtr hdc = Misc.GetDC(_hwnd); 872Misc.ReleaseDC(_hwnd, hdc); 885return Text(_hwnd); 890IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 900if (WindowsComboBox.GetComboInfo(hwndParent, ref cbInfo) && cbInfo.hwndItem == _hwnd) 910IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 921return WindowsSpinner.IsSpinnerEdit(_hwnd);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (8)
79Misc.SetFocus(_provider._hwnd); 300Misc.SetFocus(_provider._hwnd); 354Misc.SetFocus(_provider._hwnd); 418Misc.SetFocus(_provider._hwnd); 437Misc.SetFocus(_provider._hwnd); 454Misc.SetFocus(_provider._hwnd); 477Misc.SetFocus(_provider._hwnd); 483if (Misc.IsReadingRTL(_provider._hwnd))
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (4)
91Misc.SetFocus(_hwnd); 108if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 113if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 118Misc.SetFocus(_hwnd);
MS\Internal\AutomationProxies\WindowsGrip.cs (4)
47if (IsGripPresent(_hwnd, false)) 50if (Misc.GetClientRectInScreenCoordinates(_hwnd, ref client)) 52NativeMethods.SIZE sizeGrip = GetGripSize(_hwnd, false); 54if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (12)
115return Misc.StripMnemonic(RemoveHTMLAnchorTag(Misc.ProxyGetText(_hwnd))); 196if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 211bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 256return new WindowsHyperlinkItem(_hwnd, this, index); 276return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 395return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 422if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 427if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 436if (!Misc.GetWindowRect(_hwnd, ref BoundingRect)) 492bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 504Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 505Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (12)
116if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 137Misc.ProxySendMessage(_hwnd, NativeMethods.IPM_SETADDRESS, IntPtr.Zero, (IntPtr)unchecked((int)ipV4)); 152return Misc.ProxyGetText(_hwnd, IP_ADDRESS_STRING_LENGTH); 160return !Misc.IsEnabled(_hwnd); 242IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 259IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 350return Misc.ProxyGetText(_hwnd); 362if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 380Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture))); 388string s = WindowsEditBox.Text(_hwnd); 401return !SafeNativeMethods.IsWindowEnabled(_hwnd); 475return WindowsIPAddress.Create(Misc.GetParent(_hwnd), 0, 0);
MS\Internal\AutomationProxies\WindowsListBox.cs (52)
150else if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 153IScrollProvider scroll = NonClientArea.Create(_hwnd, 0) as IScrollProvider; 170return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 179if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 287Misc.GetClientRectInScreenCoordinates(_hwnd, ref listboxrect); 290int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 305int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero); 341if (ListboxItem.IsSelected(_hwnd, itemPos)) 380return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0; 422return new ListboxItem (_hwnd, this, index); 430return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero); 543if (i != skipItem && ListboxItem.IsSelected(_hwnd, i)) 555int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero); 566for (i = 0, count = Length; i < count && !ListboxItem.IsSelected (_hwnd, i); i++) 579if (i != skipItem && ListboxItem.IsSelected (_hwnd, i)) 596return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR; 609if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 681else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 719int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 723if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentLstBox")) 730return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen); 734string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(_item), iTextLen); 761if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 768bool itemSelected = IsSelected (_hwnd, _item); 818if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 824if (ListboxItem.IsSelected (_hwnd, _item) && !_listBox.IsParentedByCombo()) 870if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 875if (!IsSelected(_hwnd, _item)) 890if (!UnSelect(_hwnd, _item)) 901return ListboxItem.IsSelected (_hwnd, _item); 921if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 926if (!WindowScroll.IsScrollable(_hwnd)) 932Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 943if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 947if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 1006return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(_item), new IntPtr(0)) != NativeMethods.LB_ERR; 1010return Select (_hwnd, _item, false); 1031return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1035return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1052Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(_item), ref itemRect); 1053return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty; 1066_windowsForms = WindowsFormsHelper.GetControlState(_hwnd); 1121Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(_item)); 1126Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1136int listBoxStyle = Misc.GetWindowStyle(_hwnd); 1140int idListBox = Misc.GetWindowId(_hwnd); 1144IntPtr hwndListBoxParent = Misc.GetParent(_hwnd); 1148hwndListBoxParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 1156Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1160int id = Misc.GetWindowId(_hwnd); 1164Misc.ProxySendMessageInt(combo._hwnd, NativeMethods.WM_COMMAND, wParam, _hwnd);
MS\Internal\AutomationProxies\WindowsListView.cs (82)
86WinEventTracker.AddToNotificationList(_hwnd, new WinEventTracker.ProxyRaiseEvents (WindowsListView.GroupSpecificEvents), _groupEvents); 170(IsDetailMode (_hwnd) || 171IsImplementingGrid (_hwnd) && GetItemCount (_hwnd) > 0)) 182if (iid == TablePattern.Pattern && IsDetailMode (_hwnd)) 196bool hasGroup = IsGroupViewEnabled (_hwnd); 203count = GetItemCount (_hwnd); 230_groupsCollection.EnsureCreation (_hwnd); 232GroupManager manager = _groupsCollection[_hwnd]; 264if (IsGroupViewEnabled (_hwnd)) 267_groupsCollection.EnsureCreation (_hwnd); 270GroupManager manager = _groupsCollection [_hwnd]; 309int count = GetItemCount (_hwnd); 327bool hasGroup = IsGroupViewEnabled (_hwnd); 328int itemCount = GetItemCount(_hwnd); 340_groupsCollection.EnsureCreation(_hwnd); 342GroupManager manager = _groupsCollection[_hwnd]; 362bool hasGroup = IsGroupViewEnabled (_hwnd); 369_groupsCollection.EnsureCreation (_hwnd); 371GroupManager manager = _groupsCollection [_hwnd]; 386int count = GetItemCount (_hwnd); 396if (PtInListViewHeader (x, y) || !PtInClientRect (_hwnd, x, y)) 402if (IsGroupViewEnabled (_hwnd)) 404_groupsCollection.EnsureCreation (_hwnd); 407GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 416ProxyFragment group = new WindowsListViewGroup (_hwnd, this, groupID); 422NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 429else if (hitTest.flags == NativeMethods.LVHT_NOWHERE && IsDetailMode(_hwnd)) 447hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 464if (IsGroupViewEnabled (_hwnd)) 466_groupsCollection.EnsureCreation (_hwnd); 467return WindowsListViewGroup.GetFocusInGroup (_hwnd, this); 471int index = GetItemNext(_hwnd, -1, NativeMethods.LVNI_FOCUSED); 494IntPtr hwndHeader = ListViewGetHeader (_hwnd); 508WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents); 523IntPtr hwndHeader = ListViewGetHeader (_hwnd); 537WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents); 550int count = GetItemCount (_hwnd); 551int countSelection = MultiSelected(_hwnd) ? GetSelectedItemCount(_hwnd) : 1; 562for (int itemPos = GetItemNext(_hwnd, -1, NativeMethods.LVNI_SELECTED); itemPos != -1; itemPos = GetItemNext(_hwnd, itemPos, NativeMethods.LVNI_SELECTED)) 582return MultiSelected (_hwnd); 603if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 608WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 614if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 620int size = ApproximateViewRect (_hwnd); 639fScrollSuccess = Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 646if (fScrollSuccess && (((int)horizontalPercent != (int)ScrollPattern.NoScroll && (int)horizontalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd)) 647|| ((int)verticalPercent != (int)ScrollPattern.NoScroll && (int)verticalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd)))) 655Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 675return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 685return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 695return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 705return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 715return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 724return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 736int maxRow = GetRowCount (_hwnd); 737int maxColumn = GetColumnCount (_hwnd); 750if (IsDetailMode (_hwnd)) 762return GetRowCount (_hwnd); 770return GetColumnCount (_hwnd); 788IntPtr hwndHeader = ListViewGetHeader (_hwnd); 853return new int [] { ListViewGetView (_hwnd) }; 860return ListViewGetView (_hwnd); 1543return CheckBoxes (_hwnd) ? new int [] { NativeMethods.EventObjectNameChange, NativeMethods.EventObjectStateChange } : new int [] { NativeMethods.EventObjectNameChange }; 1571return new WindowsListViewGroup (_hwnd, this, groupID); 1580bool hasGroup = IsGroupViewEnabled (_hwnd); 1582if ((!hasGroup) && GetItemCount(_hwnd) > 0) 1590_groupsCollection.EnsureCreation(_hwnd); 1592GroupManager manager = _groupsCollection[_hwnd]; 1608return CreateListViewItemOrStartMenuItem(new WindowsListViewGroup(_hwnd, this, groupId), item); 1613return new WindowsListViewGroup (_hwnd, this, item); 1627ProxyFragment proxyFragment = new ListViewItemStartMenu(_hwnd, parent, item, AccessibleObject); 1636return new ListViewItem(_hwnd, parent, item); 1643string className = Misc.GetClassName(Misc.GetParent(_hwnd)); 1667if (!Misc.GetScrollBarInfo(_hwnd, scrollBar, ref scrollBarInfo) || 1683if (!Misc.GetScrollInfo(_hwnd, sbFlag, ref si) || 1707return new ListViewSubItem (_hwnd, lvItem, column, row); 1714int itemCount = GetItemCount (_hwnd); 1717if (IsListMode (_hwnd)) 1831IntPtr hwndHeader = ListViewGetHeader (_hwnd);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (29)
57else if (iid == ExpandCollapsePattern.Pattern && WindowsListView.IsGroupViewEnabled(_hwnd)) 70GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 101return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 112return XSendMessage.GetItemText(_hwnd, group); 126GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 158XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 179GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 216GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 233GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 246XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 285NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest (_hwnd, pt); 295return new ListViewItem (_hwnd, this, hitTest.iItem); 306XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 311GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 328int groupIndex = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero); 337bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 361int maxRow = GetRowCount (_hwnd, ID); 362int maxColumn = GetColumnCount(_hwnd, ID); 374if (WindowsListView.IsDetailMode (_hwnd)) 386return GetRowCount (_hwnd, ID); 394return GetColumnCount (_hwnd, ID); 404if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 417return IsCollapsed(_hwnd, _groupID); 591return new ListViewItem (_hwnd, this, index); 613if (!XSendMessage.SetGroupInfo(_hwnd, group)) 624GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 631return new ListViewSubItem (_hwnd, lvItem, column, lvitemIndex); 643GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 827return new ListViewGroupSubsetLink(_hwnd, this, item, _groupID);
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (4)
77XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 78Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2); 94XSendMessage.GetGroupInfo(_hwnd, ref groupInfo); // ignore return code. 110return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_SUBSET);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (83)
59if (iid == InvokePattern.Pattern && WindowsListView.ListViewInvokable(_hwnd)) 69if (iid == ValuePattern.Pattern && WindowsListView.ListViewEditable (_hwnd)) 74if (iid == GridItemPattern.Pattern && IsImplementingGrid (_hwnd)) 79if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd, _item)) 84if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 111WindowsListView._groupsCollection.EnsureCreation (_hwnd); 113GroupManager manager = WindowsListView._groupsCollection[_hwnd]; 133if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType()))) 135if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRectangle, 2)) 147if (WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_BOUNDS, out itemRectangle)) 190string text = GetText(_hwnd, _item, 0); 213return WindowsListView.SetItemFocused (_hwnd, _item); 233&& IsItemWithCheckbox(_hwnd, _item)) 257if (WindowsListView.IsDetailMode (_hwnd)) 260int countCol = GetSubItemCount (_hwnd); 277if (IsItemWithCheckbox(_hwnd, _item) && item == 0) 281else if (WindowsListView.IsDetailMode (_hwnd)) 283int countCol = GetSubItemCount (_hwnd); 296if (IsItemWithCheckbox(_hwnd, _item)) 300else if (WindowsListView.IsDetailMode(_hwnd)) 302int countCol = GetSubItemCount (_hwnd); 315if (WindowsListView.IsDetailMode (_hwnd)) 317int countCol = GetSubItemCount (_hwnd); 325if (IsItemWithCheckbox(_hwnd, _item)) 337if (IsItemWithCheckbox (_hwnd, _item)) 339NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _item); 343return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 347if (WindowsListView.IsDetailMode (_hwnd)) 350return ListViewSubItem.ElementProviderFromPoint (_hwnd, this, _item, x, y); 362int columns = ListViewItem.GetSubItemCount (_hwnd); 365int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 384if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 390if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd, _item)) 396WindowsListView.UnselectAll (_hwnd); 399if (!WindowsListView.SelectItem(_hwnd, _item)) 409if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 415if (WindowsListView.IsItemSelected (_hwnd, _item)) 421if (!WindowsListView.MultiSelected(_hwnd)) 428if (selectionRequired || WindowsListView.GetSelectedItemCount(_hwnd) > 0) 437if (!WindowsListView.SelectItem(_hwnd, _item)) 447if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 453if (!WindowsListView.IsItemSelected (_hwnd, _item)) 459if (!WindowsListView.MultiSelected (_hwnd)) 473if (!WindowsListView.UnSelectItem(_hwnd, _item)) 484return WindowsListView.IsItemSelected (_hwnd, _item); 516if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 521if (WindowsListView.Scrollable (_hwnd)) 524WindowsListView.EnsureVisible (_hwnd, _item, true); 545if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 550SetValue(val, _hwnd, _item); 558return ListViewItem.GetText (_hwnd, _item, 0); 567return !WindowsListView.ListViewEditable (_hwnd); 580if (WindowsListView.IsGroupViewEnabled (_hwnd)) 586if (WindowsListView.IsListMode (_hwnd)) 588int itemCount = WindowsListView.GetItemCount (_hwnd); 589int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 595int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 605if (WindowsListView.IsGroupViewEnabled (_hwnd)) 611if (WindowsListView.IsListMode (_hwnd)) 613int itemCount = WindowsListView.GetItemCount (_hwnd); 614int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 619int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 657if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 663if (!WindowsListView.Scrollable(_hwnd)) 669WindowsListView.EnsureVisible(_hwnd, _item, false); 841return WindowsListView.IsItemFocused (_hwnd, _item); 849IntPtr hwndHeader = WindowsListView.ListViewGetHeader(_hwnd); 855&& Misc.GetClientRectInScreenCoordinates(_hwnd, ref listViewRect)) 886return new ListViewSubItem (_hwnd, this, index, _item); 891return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 918if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 923if (WindowsListView.IsDetailMode (_hwnd) && !WindowsListView.FullRowSelect (_hwnd)) 929if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 939if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 953Misc.MouseClick(clickPoint.x, clickPoint.y, !WindowsListView.ListViewSingleClickActivate(_hwnd)); 981int groupID = GetGroupID (_hwnd, _item); 986GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 995int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID); 1014int groupID = GetGroupID (_hwnd, _item); 1019GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 1028int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (12)
63return ListViewCheckBoxRect(_hwnd, _listviewItem).ToRect(false); 73NativeMethods.Win32Rect itemRect = ListViewCheckBoxRect(_hwnd, _listviewItem); 79if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect)) 100return WindowsListView.GetItemToolTipText(_hwnd); 109string name = ListViewItem.GetText(_hwnd, _listviewItem, 0); 212ListViewItem.CheckState current = (ListViewItem.CheckState) WindowsListView.GetCheckedState (_hwnd, _listviewItem); 239if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 244Misc.SetFocus(_hwnd); 246NativeMethods.Win32Rect rc = ListViewCheckBoxRect(_hwnd, _listviewItem); 249if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 252Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 253Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (9)
47if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 58if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 77bool isVerticalScroll = IsScrollBarVertical(_hwnd, _sbFlag); 78if (isVerticalScroll && WindowsListView.InReportView (_hwnd)) 80Misc.SetScrollPos(_hwnd, _sbFlag, pos, true); 85int size = WindowsListView.ApproximateViewRect (_hwnd); 104if (WindowsListView.Scroll (_hwnd, (IntPtr) dx, (IntPtr) dy)) 109if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 129WindowsListView.Scroll (_hwnd, (IntPtr) dx, (IntPtr) dy);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (26)
55if (iid == ValuePattern.Pattern && _item == 0 && WindowsListView.ListViewEditable (_hwnd)) 79if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent, _item, lvir, out itemRectangle)) 87if (WindowsListView.FullRowSelect(_hwnd) && !WindowsListView.HasJustifyColumnsExStyle(_hwnd) && 88!WindowsListView.IsIconView(_hwnd) && _item == 0 && 1 < ListViewItem.GetSubItemCount(_hwnd)) 92if (!WindowsListView.GetSubItemRect(_hwnd, _itemParent, 1, NativeMethods.LVIR_BOUNDS, out itemRectangle1)) 98if (Misc.IsControlRTL(_hwnd)) 108if (ListViewItem.IsItemWithCheckbox (_hwnd, _itemParent)) 110NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _itemParent); 113if (Misc.IsControlRTL(_hwnd)) 167IntPtr ancestor = _hwnd; 189return WindowsListView.GetItemToolTipText(_hwnd); 198string name = ListViewItem.GetText(_hwnd, _itemParent, _item); 207return WindowsListView.SetItemFocused (_hwnd, this._itemParent); 217if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 222ListViewItem.SetValue (val, _hwnd, _itemParent); 230return ListViewItem.GetText (_hwnd, _itemParent, _item); 238return !WindowsListView.ListViewEditable (_hwnd); 251if (!WindowsListView.IsGroupViewEnabled (_hwnd)) 259int groupID = ListViewItem.GetGroupID (_hwnd, _itemParent); 263GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 326IntPtr hwndHeader = WindowsListView.ListViewGetHeader (_hwnd); 372if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 374int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 378return WindowsListView.IsItemFocused (_hwnd, _itemParent);
MS\Internal\AutomationProxies\WindowsMenu.cs (31)
83_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 97_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 137if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 338return new int[] { 1, unchecked((int)(long)_hwnd), unchecked((int)(long)_hmenu) }; 497return new MenuItem(_hwnd, this, index, _hmenu, _type); 800if (!GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 812if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 817if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 830if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_MENU, 0, out mbi)) 1213if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1247if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 1256if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 1261if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 1274if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1383if (!Misc.IsEnabled(_hwnd)) 1425if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1444if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd) 2019if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2064if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2088hwndSubMenu != _hwnd; 2118Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_KEYMENU, (IntPtr)Convert.ToInt32(' ')); 2226if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2240if (Misc.ProxyGetGUIThreadInfo(0, out gui) && _hwnd == gui.hwndActive) 2256return Misc.SetFocus(_hwnd); 2578if (_hwnd == IntPtr.Zero) 2584using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 2643return SafeNativeMethods.IsWindowEnabled(_hwnd); 2661return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2676return new MenuItem(_hwnd, _parent, nextItem, _hmenu, _menuType); 2712if (new MenuItem (_hwnd, this._parent, i, _hmenu, _menuType).HotKey == chHotKey) 2927return _hwnd;
MS\Internal\AutomationProxies\WindowsProgressbar.cs (3)
154int cur = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 155int min = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, new IntPtr(1), IntPtr.Zero); 156int max = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsRebar.cs (10)
123if (!Misc.GetWindowRect(_hwnd, ref rebarRect)) 186return new RebarBandItem (_hwnd, this, index); 193return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero); 206return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 279return GetBoundingRectangle (_hwnd, _item); 288IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 289return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 374if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 379Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 435if (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)
162if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 173if (Misc.IsBitSet(WindowStyle, NativeMethods.ES_NUMBER) && !WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 188int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 195result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 560return Misc.ProxyGetText(_hwnd); 680IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (6)
64Misc.SetFocus(_pattern._hwnd); 250Misc.SetFocus(_pattern._hwnd); 268Misc.SetFocus(_pattern._hwnd); 300Misc.SetFocus(_pattern._hwnd); 322Misc.SetFocus(_pattern._hwnd); 346Misc.SetFocus(_pattern._hwnd);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (28)
118return (iid == RangeValuePattern.Pattern && WindowScroll.Scrollable (_hwnd, _sbFlag) && HasValuePattern (_hwnd, _sbFlag)) ? this : null; 139if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi)) 159if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_parent._hwnd))) 190return SafeNativeMethods.IsWindowVisible(_hwnd); 199if (SafeNativeMethods.IsWindowVisible(_hwnd) && 214return IsEnabled() && Misc.IsEnabled(_hwnd); 218return IsScrollBarVertical(_hwnd, _sbFlag) ? OrientationType.Vertical : OrientationType.Horizontal; 262return IsScrollBarVertical(_hwnd, _sbFlag) 282if (item == ScrollBarItem.UpArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 302if (item == ScrollBarItem.DownArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 329NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect(WindowsScrollBarBits.GetBoundingRectangle(_hwnd, this, item, _sbFlag)); 333return new WindowsScrollBarBits (_hwnd, this, (int) item, _sbFlag); 363return !Misc.IsEnabled(_hwnd) || !HasValuePattern(_hwnd, _sbFlag); 521if (_sbFlag != NativeMethods.SB_CTL || Misc.GetScrollBarInfo(_hwnd, NativeMethods.OBJID_CLIENT, ref sbi)) 523return new WindowsScrollBarBits (_hwnd, this, (int) index, _sbFlag); 555string classname = Misc.GetClassName(_hwnd); 574if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 585if ((Environment.OSVersion.Version.Major < 6) && (_sbFlag == NativeMethods.SB_HORZ) && (Misc.IsControlRTL(_parent._hwnd))) 616if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 627if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 665string classname = Misc.GetClassName(_hwnd); 688Misc.SetScrollPos(_hwnd, _sbFlag, val, true); 694IsScrollBarVertical(_hwnd, _sbFlag) ? NativeMethods.WM_VSCROLL : NativeMethods.WM_HSCROLL; 699Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 701Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 738if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (10)
111return SafeNativeMethods.IsWindowVisible(_hwnd); 126return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem) _item, _sbFlag); 147if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 177if (WindowsScrollBar.IsScrollBarVertical(_hwnd, _sbFlag)) 235if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(parent._parent._hwnd))) 516IntPtr parentHwnd = _sbFlag == NativeMethods.SB_CTL ? Misc.GetWindowParent(_hwnd) : _hwnd; 544if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 565Misc.ProxySendMessage(parentHwnd, msg, (IntPtr)wParam, (IntPtr)(parentHwnd == _hwnd ? IntPtr.Zero : _hwnd));
MS\Internal\AutomationProxies\WindowsSlider.cs (16)
137NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SliderItem.GetBoundingRectangle (_hwnd, item, _fHorizontal)); 156if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 167IntPtr parent = Misc.GetParent(_hwnd); 245return new SliderItem (_hwnd, this, (int) item, _fHorizontal); 260int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 265int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 283Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_SETPOS, new IntPtr(1), new IntPtr(val)); 290return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero); 298return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero); 306return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 314return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero); 399return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem) _item, _fHorizontal); 408IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 409return Misc.GetItemToolTipText(_hwnd, hwndToolTip, 0); 430if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 439Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsStatic.cs (2)
132return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 151return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd));
MS\Internal\AutomationProxies\WindowsStatusBar.cs (17)
105if (hwndChild == IntPtr.Zero || hwndChild == _hwnd) 107hwndChild = GetChildHwnd(_hwnd, accChild.Location); 110if(hwndChild != IntPtr.Zero && hwndChild != _hwnd) 117return new WindowsStatusBarPane(_hwnd, this, index, accChild); 141return Misc.ProxyGetText(_hwnd); 170return item + 1 < count ? CreateStatusBarPane(item + 1) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, -1) : null); 201return Count > 0 ? CreateStatusBarPane(0) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, GripItemID) : null); 210return StatusBarGrip.Create(_hwnd, this, GripItemID); 223NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (WindowsStatusBarPane.GetBoundingRectangle (_hwnd, item)); 234NativeMethods.Win32Rect rc = StatusBarGrip.GetBoundingRectangle (_hwnd); 237ProxySimple grip = StatusBarGrip.Create(_hwnd, this, -1); 307hwndChild = GetChildHwnd(_hwnd, accChild.Location); 336return Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETPARTS, IntPtr.Zero, IntPtr.Zero); 459return GetBoundingRectangle (_hwnd, _item); 596int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero); 601return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len); 774return GetBoundingRectangle(_hwnd).ToRect(false);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (30)
157if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 161index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 177int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 244IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor (_hwnd, NativeMethods.GA_PARENT); 313if (!XSendMessage.GetItem(_hwnd, index, ref item)) 325return new HeaderItem (_hwnd, this, index); 333return HeaderItemCount (_hwnd); 429IntPtr hwndParent = Misc.GetParent(_hwnd); 463if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 481Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 482Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 523if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 525int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 545int index = OrderToIndex (_hwnd, _item); 554return XSendMessage.GetItemText(_hwnd, index, hdi); 562int index = OrderToIndex (_hwnd, _item); 568result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 573if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2)) 586if (Misc.IsLayoutRTL(_hwnd)) 637if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 668return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1); 679if (XSendMessage.GetItem(_hwnd, _item, ref item)) 693int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 708if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 717Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item); 724Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 725Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 734if (Misc.GetFocusedWindow().Equals(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (53)
47_fIsContent = IsValidControl(_hwnd); 146return IsValidControl(_hwnd); 182int count = GetItemCount(_hwnd); 205int count = GetItemCount(_hwnd); 228int count = GetItemCount(_hwnd); 241int count = GetItemCount(_hwnd); 259if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1)) 276index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 290int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero); 292if (focusIndex >= 0 && focusIndex < GetItemCount(_hwnd)) 363for (int i = 0, c = GetItemCount(_hwnd); i < c; i++) 365if (sTitle == WindowsTabItem.GetName(_hwnd, i, true)) 384if (!WindowsTab.SupportMultipleSelection (_hwnd)) 386int selectedItem = WindowsTabItem.GetCurrentSelectedItem(_hwnd); 428return SupportMultipleSelection (_hwnd); 448if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 472if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 513Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 573if (!Misc.GetWindowRect(_hwnd, ref viewable)) 671return new WindowsTabItem(_hwnd, this, index, _windowsForms == WindowsFormsHelper.FormControlState.True); 692Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 697return GetUpDownHwnd(_hwnd) != IntPtr.Zero; 746return GetUpDownHwnd(_hwnd); 849Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 908_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 951return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd, _item)); 955return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 966IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 967return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 977if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 986return GetName(_hwnd, _item, _windowsForms == WindowsFormsHelper.FormControlState.True); 1003Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1058if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1078if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1096if (WindowsTab.SupportMultipleSelection(_hwnd)) 1121if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1133if (WindowsTab.SupportMultipleSelection(_hwnd)) 1149Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero); 1162if (!WindowsTab.SupportMultipleSelection(_hwnd)) 1164int selectedItem = GetCurrentSelectedItem(_hwnd); 1175if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1203if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1255return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1272if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1277return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty; 1282return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd)); 1297if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1299Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1300Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1306Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1316IntPtr hwndParent = _hwnd; 1325string sName = WindowsTabItem.GetName(_hwnd, _item, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (12)
57return Misc.GetTitleBarRect(_hwnd); 65return new int [] { 4, unchecked((int)(long)_hwnd), _item }; 73return Misc.ProxyGetText(_hwnd); 111int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y)); 132WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 160return WindowsMenu.CreateSystemMenu (_hwnd, this); 166return new TitleBarButton (_hwnd, this, item); 198Misc.ProxyGetTitleBarInfo(_hwnd, out ti); 358Rect[] rects = Misc.GetTitlebarRects(_hwnd); 402if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 431Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero); 445Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (30)
210NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (ToolbarItem.GetBoundingRectangle (_hwnd, item)); 228int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero); 232Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, NativeMethods.CHILD_SELF); 238return new WindowsToolbarAsMenu(_hwnd, this, focusIndex, acc); 242return new WindowsToolbar(_hwnd, this, focusIndex); 257string name = Misc.ProxyGetText(_hwnd); 293if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 299if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0) 301Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, item + 1); 306return new ToolbarItemAsMenuItem(_hwnd, this, item, tbb.idCommand, acc); 310return new ToolbarItem(_hwnd, this, item, tbb.idCommand); 329return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero); 362if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 368bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0; 369int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero); 380IntPtr hwndParent = Misc.GetParent(_hwnd); 428if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 451return GetBoundingRectangle(_hwnd, _item); 468return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0; 514Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 576return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 598int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero); 601return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 624if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 635IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 636return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _idCommand); 642if (!SafeNativeMethods.IsWindowEnabled(_hwnd) 643|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 650if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 677if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONCHECKED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
73if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 79if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
MS\Internal\AutomationProxies\WindowsTooltip.cs (2)
182string className = Misc.ProxyGetClassName(_hwnd); 195return Misc.ProxyGetText(_hwnd);
MS\Internal\AutomationProxies\WindowsTreeView.cs (79)
156IntPtr hNext = GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 159return new TreeViewItem (_hwnd, this, hNext, (int) TVItem.TopLevel); 183IntPtr hPrev = GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 185return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null; 189IntPtr hChild = GetRoot (_hwnd); 196for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 201return new TreeViewItem (_hwnd, this, hChild, (int) TVItem.TopLevel); 212hChild = GetRoot (_hwnd); 233IntPtr hChild = GetRoot (_hwnd); 238for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 252IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 263IntPtr treeItem = GetSelection (_hwnd); 280IntPtr treeItem = GetSelection(_hwnd); 303return (IntPtr.Zero != GetSelection (_hwnd)); 375return new TreeViewItem (_hwnd, this, hItem, depth); 380return CreateParents (_hwnd, hItem); 745return IsItemExpanded (_hwnd, _hItem) ? NextSibling (child) : null; 754return IsItemExpanded (_hwnd, _hItem) ? PreviousSibling (child) : null; 761return IsItemExpanded (_hwnd, _hItem) ? FirstChild () : null; 768return IsItemExpanded (_hwnd, _hItem) ? LastChild () : null; 789else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 812if (_nativeAcc == null && System.Environment.OSVersion.Version.Major >= 6 && Misc.IsWindowInGivenProcess(_hwnd, "explorer")) 815_nativeAcc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, childId); 835return WindowsTreeView.GetItemRect(_hwnd, _hItem, true).ToRect(false); 844NativeMethods.Win32Rect itemRect = GetItemRect(_hwnd, _hItem, true); 847if (!Misc.IsItemVisible(_hwnd, ref itemRect)) 863IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 864return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 925return WindowsTreeView.SelectItem (_hwnd, _hItem); 941return new int [4] { ProxySimple.Win32ProviderRuntimeIdBase, unchecked((int)(long)_hwnd), highPart, lowPart }; 945return new int[3] { ProxySimple.Win32ProviderRuntimeIdBase, (int)_hwnd, (int)_hItem }; 957if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 977if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 988if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1006if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero) 1013if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 1023if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1073if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1093WindowsTreeView.Expand (_hwnd, _hItem); 1102if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1118WindowsTreeView.Collapse (_hwnd, _hItem); 1144if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1151if (!WindowsTreeView.SetItemText(_hwnd, _hItem, val)) 1184if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1197WindowsTreeView.SetCheckState(_hwnd, _hItem, GetToggleState() != ToggleState.On); 1219if (!WindowScroll.IsScrollable(_hwnd)) 1224Misc.SetFocus(_hwnd); 1228Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem); 1281int selected = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TVM_GETITEMSTATE, _hItem, new IntPtr(NativeMethods.TVIS_SELECTED)); 1304if (!WindowsTreeView.IsItemExpanded (_hwnd, current._hItem)) 1316IntPtr hNext = WindowsTreeView.GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 1318return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1326IntPtr hPrev = WindowsTreeView.GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 1328return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1334IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1336return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1342if (!IsItemExpanded (_hwnd, _hItem)) 1347IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1352for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild)) 1357return new TreeViewItem(_hwnd, this, hChild, _item + 1); 1366bool expanded = WindowsTreeView.IsItemExpanded (_hwnd, _hItem); 1374bool hasChildren = WindowsTreeView.TreeViewItem_HasChildren (_hwnd, _hItem); 1403state = (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1454NativeMethods.Win32Rect rectItem = WindowsTreeView.GetItemRect(_hwnd, _hItem, true); 1465if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1480int selected = WindowsTreeView.GetItemState(_hwnd, _hItem, NativeMethods.TVIS_SELECTED); 1500isCheckbox = WindowsTreeView.CheckState.NoCheckbox != (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1529return WindowsTreeView.GetItemText (_hwnd, _hItem); 1537Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1538Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1544if (WindowsTreeView.GetItem(_hwnd, _hItem, NativeMethods.TVIF_IMAGE | NativeMethods.TVIF_STATE, out treeItem)) 1565IntPtr address = UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr"); 1571int numStates = unchecked((int)UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapCount")); 1584using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 1626return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero; 1636int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (21)
93return new SpinButtonItem(_hwnd, IsSpinnerElement()? _parent : this, (int)item); 118if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd) && IsWinformUpdown(_hwnd)) 184NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SpinButtonItem.GetBoundingRectangle (_hwnd, item)); 203if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 223Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 226Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 289IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 340int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 367IntPtr hwndBuddy = HwndBuddy(_hwnd); 377int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 391int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 464return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)_item); 508if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 523if (IsHorizontal(_hwnd) && Misc.IsLayoutRTL(_hwnd)) 529Rect rc = GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)item); 532if (!Misc.GetWindowRect(_hwnd, ref updownRect)) 542Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, center); 543Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, center); 620IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WinFormsSpinner.cs (4)
307return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent, _item); 425return _elEdit._hwnd == hwnd;