1 write to _hwnd
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
68_hwnd = hwnd;
848 references to _hwnd
UIAutomationClientSideProviders (848)
MS\Internal\AutomationProxies\NonClientArea.cs (27)
219int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 241WindowsTitleBar tb = new WindowsTitleBar(_hwnd, this, 0); 315return new int [] { 1, unchecked((int)(long)_hwnd) }; 321if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 366WindowScroll.SetScrollPercent (_hwnd, horizontalPercent, verticalPercent, true); 372WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 380return (double) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 389return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 398return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 407return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 416return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 425return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 471if (WindowsScrollBar.HasHorizontalScrollBar (_hwnd)) 475if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 476return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 478return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 483if (WindowsScrollBar.HasVerticalScrollBar (_hwnd)) 487if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 488return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 490return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 497if (WindowsTitleBar.HasTitleBar (_hwnd)) 499return new WindowsTitleBar (_hwnd, this, (int) item); 514if (WindowsGrip.IsGripPresent(_hwnd, false)) 516return new WindowsGrip(_hwnd, this, (int)item); 549IntPtr menu = UnsafeNativeMethods.GetMenu(_hwnd); 552menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 589if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (15)
96WinEventTracker.AddToNotificationList (_hwnd, _createOnEvent, aEvents, cEvents); 126WinEventTracker.RemoveToNotificationList (_hwnd, aEvents, null, cEvents); 137return PtInClientRect (_hwnd, x, y) ? this : null; 147accessKey = GetLabelAccessKey(_hwnd); 161if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 163string sPersistentID = WindowsFormsHelper.WindowsFormsID (_hwnd); 171if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 192IntPtr label = Misc.GetLabelhwnd(_hwnd); 201name = Misc.ProxyGetText(_hwnd); 226_controlLabel = Misc.GetLabelhwnd(_hwnd); 239if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 244IntPtr hwndParent = Misc.GetParent(_hwnd); 271int idChild = Misc.GetWindowId(_hwnd); 272string text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, idChild); 275text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, 0);
MS\Internal\AutomationProxies\ProxySimple.cs (22)
100if (_hwnd == IntPtr.Zero) 107if (!Misc.GetWindowRect(_hwnd, ref controlRectangle)) 160id[1] = _hwnd.ToInt32(); 174if (_hwnd == IntPtr.Zero || (GetParent() != null && GetParent()._hwnd == _hwnd)) 179return AutomationInteropProvider.HostProviderFromHandle(_hwnd); 214return Misc.IsEnabled(_hwnd); 225Misc.GetWindowThreadProcessId(_hwnd, out pid); 247return Misc.GetFocusedWindow() == _hwnd ? IsFocused() : false; 269return WindowsFormsHelper.IsWindowsFormsControl(_hwnd) ? "WinForm" : "Win32"; 278if (Misc.GetFocusedWindow() == _hwnd && IsFocused()) 284if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 350string sRawName = Misc.GetControlName(_hwnd, false); 399EventManager.DispatchEvent(this, _hwnd, eventId, idProp, idObject); 539if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 589Misc.GetClientRectInScreenCoordinates(_hwnd, ref rcOutside); 613return ClickablePoint.GetPoint(_hwnd, alIn, alOut, ref pt); 649_IAccessible = Accessible.AccessibleObjectFromWindow(_hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK ? acc.IAccessible : null; 665return _hwnd; 674return Misc.GetWindowStyle(_hwnd); 683return Misc.GetWindowExStyle(_hwnd);
MS\Internal\AutomationProxies\WindowsAltTab.cs (8)
45GetAltTabInfo(_hwnd, 0, ref _altTabInfo, null); 138if (Misc.MapWindowPoints(System.IntPtr.Zero, _hwnd, ref pt, 1)) 142if(Misc.GetClientRect(_hwnd, ref clientRect)) 203altTabItem = new WindowsAltTabItem(_hwnd, this, item); 222if (GetAltTabInfo(_hwnd, -1, ref altTabInfo, null)) 353return GetBoundingRect().ToRect(Misc.IsControlRTL(_hwnd)); 366if (WindowsAltTab.GetAltTabInfo(_hwnd, _item, ref altTabInfo, itemText)) 398if(!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2))
MS\Internal\AutomationProxies\WindowsButton.cs (22)
258if (!WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms) && IsStartButton()) 263return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 269return SafeNativeMethods.IsWindowVisible(_hwnd); 398IntPtr hwndParent = Misc.GetParent(_hwnd); 470if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 479Misc.SetFocus(_hwnd); 503Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero); 517Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true); 524Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true); 558if (!Misc.GetClassName(_hwnd).Equals("Button")) 566return Misc.InTheShellProcess(_hwnd) && UnsafeNativeMethods.GetProp(_hwnd, "StartButtonTag") == new IntPtr(304); 570IntPtr hwndParent = Misc.GetParent(_hwnd); 584if (!Misc.GetClassName(_hwnd).Equals("Button")) 589IntPtr hwndParent = Misc.GetParent(_hwnd); 604IntPtr hwndParent = _hwnd; 649int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero); 672if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 674Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindRadioButtonChild), (void*)&radiobuttonChildFound); 703return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd)); 709if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 712Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindSelectedRadioButtonChild), (void*)&selectedRadiobutton);
MS\Internal\AutomationProxies\WindowsComboBox.cs (34)
124if (GetDroppedState (_hwnd)) 130if (GetComboInfo(_hwnd, ref cbInfo)) 145return rcCombo.ToRect(Misc.IsControlRTL(_hwnd)); 154if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentCmboBx")) 256if (GetComboInfo(_hwnd, ref cbInfo)) 259if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 263return new WindowsComboButton(_hwnd, this, (int)ComboChildren.Button); 300if (GetComboInfo(_hwnd, ref cbInfo)) 337if (GetComboInfo(_hwnd, ref cbInfo)) 376Misc.CheckEnabled(_hwnd); 381if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 391IntPtr hwndParent = Misc.GetParent(_hwnd); 394int id = Misc.GetWindowId(_hwnd); 397Misc.ProxySendMessage(hwndParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 419if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 444Misc.CheckEnabled(_hwnd); 446if (GetDroppedState (_hwnd)) 452Expand (_hwnd); 458Misc.CheckEnabled(_hwnd); 460if (!GetDroppedState (_hwnd)) 466Collapse(_hwnd); 473return (GetDroppedState (_hwnd)) ? ExpandCollapseState.Expanded : ExpandCollapseState.Collapsed; 501IntPtr hwndToAsk = IsComboBoxEx32() ? _hwndEx : _hwnd; 632return Misc.ProxyGetText(IsComboBoxEx32() ? _hwndEx : _hwnd); 638IntPtr hwnd = IsComboBoxEx32() ? _hwndEx : _hwnd; 648if (GetComboInfo(_hwnd, ref cbInfo) && cbInfo.stateButton != NativeMethods.STATE_SYSTEM_INVISIBLE) 650return new WindowsComboButton (_hwnd, this, (int) ComboChildren.Button); 660if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList)) 924if (!WindowsComboBox.GetComboInfo(_hwnd, ref cbInfo)) 928if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 955Misc.CheckEnabled(_hwnd); 957if (!WindowsComboBox.GetDroppedState (_hwnd)) 959WindowsComboBox.Expand (_hwnd); 963WindowsComboBox.Collapse (_hwnd);
MS\Internal\AutomationProxies\WindowsEditBox.cs (21)
153for (IntPtr hwnd = _hwnd; 166if (IsInsideOfIPAddress(_hwnd)) 221IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 224return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 232IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 235return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 243IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 246return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 270Misc.CheckEnabled(_hwnd); 294int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 302result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 584return Misc.ProxyGetText(_hwnd, GetTextLength()); 600if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 723if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 855IntPtr hdc = Misc.GetDC(_hwnd); 875Misc.ReleaseDC(_hwnd, hdc); 888return Text(_hwnd); 893IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 903if (WindowsComboBox.GetComboInfo(hwndParent, ref cbInfo) && cbInfo.hwndItem == _hwnd) 913IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 924return WindowsSpinner.IsSpinnerEdit(_hwnd);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (8)
86Misc.SetFocus(_provider._hwnd); 307Misc.SetFocus(_provider._hwnd); 361Misc.SetFocus(_provider._hwnd); 425Misc.SetFocus(_provider._hwnd); 444Misc.SetFocus(_provider._hwnd); 461Misc.SetFocus(_provider._hwnd); 484Misc.SetFocus(_provider._hwnd); 490if (Misc.IsReadingRTL(_provider._hwnd))
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (4)
105Misc.SetFocus(_hwnd); 122if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 127if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 132Misc.SetFocus(_hwnd);
MS\Internal\AutomationProxies\WindowsGrip.cs (4)
54if (IsGripPresent(_hwnd, false)) 57if (Misc.GetClientRectInScreenCoordinates(_hwnd, ref client)) 59NativeMethods.SIZE sizeGrip = GetGripSize(_hwnd, false); 61if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (12)
119return Misc.StripMnemonic(RemoveHTMLAnchorTag(Misc.ProxyGetText(_hwnd))); 204if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 219bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 264return new WindowsHyperlinkItem(_hwnd, this, index); 284return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 402return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 429if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 434if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 443if (!Misc.GetWindowRect(_hwnd, ref BoundingRect)) 499bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 511Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 512Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (12)
119if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 140Misc.ProxySendMessage(_hwnd, NativeMethods.IPM_SETADDRESS, IntPtr.Zero, (IntPtr)unchecked((int)ipV4)); 155return Misc.ProxyGetText(_hwnd, IP_ADDRESS_STRING_LENGTH); 163return !Misc.IsEnabled(_hwnd); 245IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 262IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 353return Misc.ProxyGetText(_hwnd); 365if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 383Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture))); 391string s = WindowsEditBox.Text(_hwnd); 404return !SafeNativeMethods.IsWindowEnabled(_hwnd); 478return WindowsIPAddress.Create(Misc.GetParent(_hwnd), 0, 0);
MS\Internal\AutomationProxies\WindowsListBox.cs (52)
158else if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 161IScrollProvider scroll = NonClientArea.Create(_hwnd, 0) as IScrollProvider; 178return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 187if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 295Misc.GetClientRectInScreenCoordinates(_hwnd, ref listboxrect); 298int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 313int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero); 349if (ListboxItem.IsSelected(_hwnd, itemPos)) 388return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0; 430return new ListboxItem (_hwnd, this, index); 438return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero); 557if (i != skipItem && ListboxItem.IsSelected(_hwnd, i)) 569int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero); 580for (i = 0, count = Length; i < count && !ListboxItem.IsSelected (_hwnd, i); i++) 593if (i != skipItem && ListboxItem.IsSelected (_hwnd, i)) 610return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR; 623if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 695else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 733int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 737if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentLstBox")) 744return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen); 748string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(_item), iTextLen); 775if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 782bool itemSelected = IsSelected (_hwnd, _item); 832if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 838if (ListboxItem.IsSelected (_hwnd, _item) && !_listBox.IsParentedByCombo()) 884if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 889if (!IsSelected(_hwnd, _item)) 904if (!UnSelect(_hwnd, _item)) 915return ListboxItem.IsSelected (_hwnd, _item); 935if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 940if (!WindowScroll.IsScrollable(_hwnd)) 946Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 957if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 961if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 1020return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(_item), new IntPtr(0)) != NativeMethods.LB_ERR; 1024return Select (_hwnd, _item, false); 1045return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1049return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1066Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(_item), ref itemRect); 1067return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty; 1080_windowsForms = WindowsFormsHelper.GetControlState(_hwnd); 1135Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(_item)); 1140Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1150int listBoxStyle = Misc.GetWindowStyle(_hwnd); 1154int idListBox = Misc.GetWindowId(_hwnd); 1158IntPtr hwndListBoxParent = Misc.GetParent(_hwnd); 1162hwndListBoxParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 1170Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1174int id = Misc.GetWindowId(_hwnd); 1178Misc.ProxySendMessageInt(combo._hwnd, NativeMethods.WM_COMMAND, wParam, _hwnd);
MS\Internal\AutomationProxies\WindowsListView.cs (82)
90WinEventTracker.AddToNotificationList (_hwnd, new WinEventTracker.ProxyRaiseEvents (WindowsListView.GroupSpecificEvents), _groupEvents, 3); 177(IsDetailMode (_hwnd) || 178IsImplementingGrid (_hwnd) && GetItemCount (_hwnd) > 0)) 189if (iid == TablePattern.Pattern && IsDetailMode (_hwnd)) 203bool hasGroup = IsGroupViewEnabled (_hwnd); 210count = GetItemCount (_hwnd); 237_groupsCollection.EnsureCreation (_hwnd); 239GroupManager manager = _groupsCollection[_hwnd]; 271if (IsGroupViewEnabled (_hwnd)) 274_groupsCollection.EnsureCreation (_hwnd); 277GroupManager manager = _groupsCollection [_hwnd]; 316int count = GetItemCount (_hwnd); 334bool hasGroup = IsGroupViewEnabled (_hwnd); 335int itemCount = GetItemCount(_hwnd); 347_groupsCollection.EnsureCreation(_hwnd); 349GroupManager manager = _groupsCollection[_hwnd]; 369bool hasGroup = IsGroupViewEnabled (_hwnd); 376_groupsCollection.EnsureCreation (_hwnd); 378GroupManager manager = _groupsCollection [_hwnd]; 393int count = GetItemCount (_hwnd); 403if (PtInListViewHeader (x, y) || !PtInClientRect (_hwnd, x, y)) 409if (IsGroupViewEnabled (_hwnd)) 411_groupsCollection.EnsureCreation (_hwnd); 414GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 423ProxyFragment group = new WindowsListViewGroup (_hwnd, this, groupID); 429NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 436else if (hitTest.flags == NativeMethods.LVHT_NOWHERE && IsDetailMode(_hwnd)) 454hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 471if (IsGroupViewEnabled (_hwnd)) 473_groupsCollection.EnsureCreation (_hwnd); 474return WindowsListViewGroup.GetFocusInGroup (_hwnd, this); 478int index = GetItemNext(_hwnd, -1, NativeMethods.LVNI_FOCUSED); 501IntPtr hwndHeader = ListViewGetHeader (_hwnd); 515WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents, 1); 530IntPtr hwndHeader = ListViewGetHeader (_hwnd); 544WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents, 1); 557int count = GetItemCount (_hwnd); 558int countSelection = MultiSelected(_hwnd) ? GetSelectedItemCount(_hwnd) : 1; 569for (int itemPos = GetItemNext(_hwnd, -1, NativeMethods.LVNI_SELECTED); itemPos != -1; itemPos = GetItemNext(_hwnd, itemPos, NativeMethods.LVNI_SELECTED)) 589return MultiSelected (_hwnd); 610if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 615WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 621if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 627int size = ApproximateViewRect (_hwnd); 646fScrollSuccess = Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 653if (fScrollSuccess && (((int)horizontalPercent != (int)ScrollPattern.NoScroll && (int)horizontalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd)) 654|| ((int)verticalPercent != (int)ScrollPattern.NoScroll && (int)verticalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd)))) 662Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 682return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 692return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 702return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 712return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 722return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 731return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 743int maxRow = GetRowCount (_hwnd); 744int maxColumn = GetColumnCount (_hwnd); 757if (IsDetailMode (_hwnd)) 769return GetRowCount (_hwnd); 777return GetColumnCount (_hwnd); 795IntPtr hwndHeader = ListViewGetHeader (_hwnd); 860return new int [] { ListViewGetView (_hwnd) }; 867return ListViewGetView (_hwnd); 1549return CheckBoxes (_hwnd) ? new int [] { NativeMethods.EventObjectNameChange, NativeMethods.EventObjectStateChange } : new int [] { NativeMethods.EventObjectNameChange }; 1577return new WindowsListViewGroup (_hwnd, this, groupID); 1586bool hasGroup = IsGroupViewEnabled (_hwnd); 1588if ((!hasGroup) && GetItemCount(_hwnd) > 0) 1596_groupsCollection.EnsureCreation(_hwnd); 1598GroupManager manager = _groupsCollection[_hwnd]; 1614return CreateListViewItemOrStartMenuItem(new WindowsListViewGroup(_hwnd, this, groupId), item); 1619return new WindowsListViewGroup (_hwnd, this, item); 1633ProxyFragment proxyFragment = new ListViewItemStartMenu(_hwnd, parent, item, AccessibleObject); 1642return new ListViewItem(_hwnd, parent, item); 1649string className = Misc.GetClassName(Misc.GetParent(_hwnd)); 1673if (!Misc.GetScrollBarInfo(_hwnd, scrollBar, ref scrollBarInfo) || 1689if (!Misc.GetScrollInfo(_hwnd, sbFlag, ref si) || 1713return new ListViewSubItem (_hwnd, lvItem, column, row); 1720int itemCount = GetItemCount (_hwnd); 1723if (IsListMode (_hwnd)) 1836IntPtr hwndHeader = ListViewGetHeader (_hwnd);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (29)
60else if (iid == ExpandCollapsePattern.Pattern && WindowsListView.IsGroupViewEnabled(_hwnd)) 73GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 104return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 115return XSendMessage.GetItemText(_hwnd, group); 129GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 161XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 182GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 219GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 236GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 249XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 288NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest (_hwnd, pt); 298return new ListViewItem (_hwnd, this, hitTest.iItem); 309XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 314GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 331int groupIndex = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero); 340bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 364int maxRow = GetRowCount (_hwnd, ID); 365int maxColumn = GetColumnCount(_hwnd, ID); 377if (WindowsListView.IsDetailMode (_hwnd)) 389return GetRowCount (_hwnd, ID); 397return GetColumnCount (_hwnd, ID); 407if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 420return IsCollapsed(_hwnd, _groupID); 593return new ListViewItem (_hwnd, this, index); 615if (!XSendMessage.SetGroupInfo(_hwnd, group)) 626GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 633return new ListViewSubItem (_hwnd, lvItem, column, lvitemIndex); 645GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 829return 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)
65if (iid == InvokePattern.Pattern && WindowsListView.ListViewInvokable(_hwnd)) 75if (iid == ValuePattern.Pattern && WindowsListView.ListViewEditable (_hwnd)) 80if (iid == GridItemPattern.Pattern && IsImplementingGrid (_hwnd)) 85if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd, _item)) 90if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 117WindowsListView._groupsCollection.EnsureCreation (_hwnd); 119GroupManager manager = WindowsListView._groupsCollection[_hwnd]; 137if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType()))) 139if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRectangle, 2)) 151if (WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_BOUNDS, out itemRectangle)) 194string text = GetText(_hwnd, _item, 0); 217return WindowsListView.SetItemFocused (_hwnd, _item); 237&& IsItemWithCheckbox(_hwnd, _item)) 261if (WindowsListView.IsDetailMode (_hwnd)) 264int countCol = GetSubItemCount (_hwnd); 281if (IsItemWithCheckbox(_hwnd, _item) && item == 0) 285else if (WindowsListView.IsDetailMode (_hwnd)) 287int countCol = GetSubItemCount (_hwnd); 300if (IsItemWithCheckbox(_hwnd, _item)) 304else if (WindowsListView.IsDetailMode(_hwnd)) 306int countCol = GetSubItemCount (_hwnd); 319if (WindowsListView.IsDetailMode (_hwnd)) 321int countCol = GetSubItemCount (_hwnd); 329if (IsItemWithCheckbox(_hwnd, _item)) 341if (IsItemWithCheckbox (_hwnd, _item)) 343NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _item); 347return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 351if (WindowsListView.IsDetailMode (_hwnd)) 354return ListViewSubItem.ElementProviderFromPoint (_hwnd, this, _item, x, y); 366int columns = ListViewItem.GetSubItemCount (_hwnd); 369int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 388if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 394if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd, _item)) 400WindowsListView.UnselectAll (_hwnd); 403if (!WindowsListView.SelectItem(_hwnd, _item)) 413if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 419if (WindowsListView.IsItemSelected (_hwnd, _item)) 425if (!WindowsListView.MultiSelected(_hwnd)) 432if (selectionRequired || WindowsListView.GetSelectedItemCount(_hwnd) > 0) 441if (!WindowsListView.SelectItem(_hwnd, _item)) 451if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 457if (!WindowsListView.IsItemSelected (_hwnd, _item)) 463if (!WindowsListView.MultiSelected (_hwnd)) 477if (!WindowsListView.UnSelectItem(_hwnd, _item)) 488return WindowsListView.IsItemSelected (_hwnd, _item); 520if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 525if (WindowsListView.Scrollable (_hwnd)) 528WindowsListView.EnsureVisible (_hwnd, _item, true); 549if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 554SetValue(val, _hwnd, _item); 562return ListViewItem.GetText (_hwnd, _item, 0); 571return !WindowsListView.ListViewEditable (_hwnd); 584if (WindowsListView.IsGroupViewEnabled (_hwnd)) 590if (WindowsListView.IsListMode (_hwnd)) 592int itemCount = WindowsListView.GetItemCount (_hwnd); 593int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 599int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 609if (WindowsListView.IsGroupViewEnabled (_hwnd)) 615if (WindowsListView.IsListMode (_hwnd)) 617int itemCount = WindowsListView.GetItemCount (_hwnd); 618int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 623int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 661if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 667if (!WindowsListView.Scrollable(_hwnd)) 673WindowsListView.EnsureVisible(_hwnd, _item, false); 846return WindowsListView.IsItemFocused (_hwnd, _item); 854IntPtr hwndHeader = WindowsListView.ListViewGetHeader(_hwnd); 860&& Misc.GetClientRectInScreenCoordinates(_hwnd, ref listViewRect)) 891return new ListViewSubItem (_hwnd, this, index, _item); 896return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 923if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 928if (WindowsListView.IsDetailMode (_hwnd) && !WindowsListView.FullRowSelect (_hwnd)) 934if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 944if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 958Misc.MouseClick(clickPoint.x, clickPoint.y, !WindowsListView.ListViewSingleClickActivate(_hwnd)); 986int groupID = GetGroupID (_hwnd, _item); 991GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 1000int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID); 1019int groupID = GetGroupID (_hwnd, _item); 1024GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 1033int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (12)
66return ListViewCheckBoxRect(_hwnd, _listviewItem).ToRect(false); 76NativeMethods.Win32Rect itemRect = ListViewCheckBoxRect(_hwnd, _listviewItem); 82if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect)) 103return WindowsListView.GetItemToolTipText(_hwnd); 112string name = ListViewItem.GetText(_hwnd, _listviewItem, 0); 215ListViewItem.CheckState current = (ListViewItem.CheckState) WindowsListView.GetCheckedState (_hwnd, _listviewItem); 242if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 247Misc.SetFocus(_hwnd); 249NativeMethods.Win32Rect rc = ListViewCheckBoxRect(_hwnd, _listviewItem); 252if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 255Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 256Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (9)
50if (!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)
57if (iid == ValuePattern.Pattern && _item == 0 && WindowsListView.ListViewEditable (_hwnd)) 81if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent, _item, lvir, out itemRectangle)) 89if (WindowsListView.FullRowSelect(_hwnd) && !WindowsListView.HasJustifyColumnsExStyle(_hwnd) && 90!WindowsListView.IsIconView(_hwnd) && _item == 0 && 1 < ListViewItem.GetSubItemCount(_hwnd)) 94if (!WindowsListView.GetSubItemRect(_hwnd, _itemParent, 1, NativeMethods.LVIR_BOUNDS, out itemRectangle1)) 100if (Misc.IsControlRTL(_hwnd)) 110if (ListViewItem.IsItemWithCheckbox (_hwnd, _itemParent)) 112NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _itemParent); 115if (Misc.IsControlRTL(_hwnd)) 169IntPtr ancestor = _hwnd; 191return WindowsListView.GetItemToolTipText(_hwnd); 200string name = ListViewItem.GetText(_hwnd, _itemParent, _item); 209return WindowsListView.SetItemFocused (_hwnd, this._itemParent); 219if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 224ListViewItem.SetValue (val, _hwnd, _itemParent); 232return ListViewItem.GetText (_hwnd, _itemParent, _item); 240return !WindowsListView.ListViewEditable (_hwnd); 253if (!WindowsListView.IsGroupViewEnabled (_hwnd)) 261int groupID = ListViewItem.GetGroupID (_hwnd, _itemParent); 265GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 328IntPtr hwndHeader = WindowsListView.ListViewGetHeader (_hwnd); 374if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 376int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 380return WindowsListView.IsItemFocused (_hwnd, _itemParent);
MS\Internal\AutomationProxies\WindowsMenu.cs (31)
89_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 103_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 143if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 344return new int[] { 1, unchecked((int)(long)_hwnd), unchecked((int)(long)_hmenu) }; 503return new MenuItem(_hwnd, this, index, _hmenu, _type); 806if (!GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 818if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 823if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 836if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_MENU, 0, out mbi)) 1219if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1253if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 1262if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 1267if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 1282if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1391if (!Misc.IsEnabled(_hwnd)) 1433if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1452if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd) 2027if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2072if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2096hwndSubMenu != _hwnd; 2126Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_KEYMENU, (IntPtr)Convert.ToInt32(' ')); 2234if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2248if (Misc.ProxyGetGUIThreadInfo(0, out gui) && _hwnd == gui.hwndActive) 2264return Misc.SetFocus(_hwnd); 2586if (_hwnd == IntPtr.Zero) 2592using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 2651return SafeNativeMethods.IsWindowEnabled(_hwnd); 2669return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2684return new MenuItem(_hwnd, _parent, nextItem, _hmenu, _menuType); 2720if (new MenuItem (_hwnd, this._parent, i, _hmenu, _menuType).HotKey == chHotKey) 2935return _hwnd;
MS\Internal\AutomationProxies\WindowsProgressbar.cs (3)
159int cur = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 160int min = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, new IntPtr(1), IntPtr.Zero); 161int max = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsRebar.cs (10)
127if (!Misc.GetWindowRect(_hwnd, ref rebarRect)) 190return new RebarBandItem (_hwnd, this, index); 197return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero); 208return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 281return GetBoundingRectangle (_hwnd, _item); 290IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 291return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 376if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 381Misc.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)
167if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 178if (Misc.IsBitSet(WindowStyle, NativeMethods.ES_NUMBER) && !WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 193int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 200result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 565return Misc.ProxyGetText(_hwnd); 681IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (6)
69Misc.SetFocus(_pattern._hwnd); 258Misc.SetFocus(_pattern._hwnd); 276Misc.SetFocus(_pattern._hwnd); 308Misc.SetFocus(_pattern._hwnd); 330Misc.SetFocus(_pattern._hwnd); 354Misc.SetFocus(_pattern._hwnd);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (28)
125return (iid == RangeValuePattern.Pattern && WindowScroll.Scrollable (_hwnd, _sbFlag) && HasValuePattern (_hwnd, _sbFlag)) ? this : null; 146if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi)) 166if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_parent._hwnd))) 197return SafeNativeMethods.IsWindowVisible(_hwnd); 206if (SafeNativeMethods.IsWindowVisible(_hwnd) && 221return IsEnabled() && Misc.IsEnabled(_hwnd); 225return IsScrollBarVertical(_hwnd, _sbFlag) ? OrientationType.Vertical : OrientationType.Horizontal; 269return IsScrollBarVertical(_hwnd, _sbFlag) 289if (item == ScrollBarItem.UpArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 309if (item == ScrollBarItem.DownArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 336NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect(WindowsScrollBarBits.GetBoundingRectangle(_hwnd, this, item, _sbFlag)); 340return new WindowsScrollBarBits (_hwnd, this, (int) item, _sbFlag); 370return !Misc.IsEnabled(_hwnd) || !HasValuePattern(_hwnd, _sbFlag); 528if (_sbFlag != NativeMethods.SB_CTL || Misc.GetScrollBarInfo(_hwnd, NativeMethods.OBJID_CLIENT, ref sbi)) 530return new WindowsScrollBarBits (_hwnd, this, (int) index, _sbFlag); 562string classname = Misc.GetClassName(_hwnd); 579if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 590if ((Environment.OSVersion.Version.Major < 6) && (_sbFlag == NativeMethods.SB_HORZ) && (Misc.IsControlRTL(_parent._hwnd))) 621if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 630if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 668string classname = Misc.GetClassName(_hwnd); 691Misc.SetScrollPos(_hwnd, _sbFlag, val, true); 697IsScrollBarVertical(_hwnd, _sbFlag) ? NativeMethods.WM_VSCROLL : NativeMethods.WM_HSCROLL; 702Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 704Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 741if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (10)
115return SafeNativeMethods.IsWindowVisible(_hwnd); 130return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem) _item, _sbFlag); 151if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 181if (WindowsScrollBar.IsScrollBarVertical(_hwnd, _sbFlag)) 239if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(parent._parent._hwnd))) 520IntPtr parentHwnd = _sbFlag == NativeMethods.SB_CTL ? Misc.GetWindowParent(_hwnd) : _hwnd; 546if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 567Misc.ProxySendMessage(parentHwnd, msg, (IntPtr)wParam, (IntPtr)(parentHwnd == _hwnd ? IntPtr.Zero : _hwnd));
MS\Internal\AutomationProxies\WindowsSlider.cs (16)
141NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SliderItem.GetBoundingRectangle (_hwnd, item, _fHorizontal)); 160if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 171IntPtr parent = Misc.GetParent(_hwnd); 249return new SliderItem (_hwnd, this, (int) item, _fHorizontal); 264int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 269int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 287Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_SETPOS, new IntPtr(1), new IntPtr(val)); 294return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero); 302return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero); 310return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 318return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero); 403return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem) _item, _fHorizontal); 412IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 413return Misc.GetItemToolTipText(_hwnd, hwndToolTip, 0); 434if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 443Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsStatic.cs (2)
137return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 156return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd));
MS\Internal\AutomationProxies\WindowsStatusBar.cs (17)
109if (hwndChild == IntPtr.Zero || hwndChild == _hwnd) 111hwndChild = GetChildHwnd(_hwnd, accChild.Location); 114if(hwndChild != IntPtr.Zero && hwndChild != _hwnd) 121return new WindowsStatusBarPane(_hwnd, this, index, accChild); 145return Misc.ProxyGetText(_hwnd); 174return item + 1 < count ? CreateStatusBarPane(item + 1) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, -1) : null); 205return Count > 0 ? CreateStatusBarPane(0) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, GripItemID) : null); 214return StatusBarGrip.Create(_hwnd, this, GripItemID); 227NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (WindowsStatusBarPane.GetBoundingRectangle (_hwnd, item)); 238NativeMethods.Win32Rect rc = StatusBarGrip.GetBoundingRectangle (_hwnd); 241ProxySimple grip = StatusBarGrip.Create(_hwnd, this, -1); 311hwndChild = GetChildHwnd(_hwnd, accChild.Location); 340return Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETPARTS, IntPtr.Zero, IntPtr.Zero); 462return GetBoundingRectangle (_hwnd, _item); 599int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero); 604return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len); 777return GetBoundingRectangle(_hwnd).ToRect(false);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (30)
164if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 168index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 184int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 251IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor (_hwnd, NativeMethods.GA_PARENT); 320if (!XSendMessage.GetItem(_hwnd, index, ref item)) 332return new HeaderItem (_hwnd, this, index); 340return HeaderItemCount (_hwnd); 436IntPtr hwndParent = Misc.GetParent(_hwnd); 470if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 491Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 492Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 533if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 535int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 555int index = OrderToIndex (_hwnd, _item); 564return XSendMessage.GetItemText(_hwnd, index, hdi); 572int index = OrderToIndex (_hwnd, _item); 578result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 583if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2)) 596if (Misc.IsLayoutRTL(_hwnd)) 647if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 678return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1); 689if (XSendMessage.GetItem(_hwnd, _item, ref item)) 703int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 718if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 730Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item); 737Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 738Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 747if (Misc.GetFocusedWindow().Equals(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (53)
50_fIsContent = IsValidControl(_hwnd); 152return IsValidControl(_hwnd); 188int count = GetItemCount(_hwnd); 211int count = GetItemCount(_hwnd); 234int count = GetItemCount(_hwnd); 247int count = GetItemCount(_hwnd); 264if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1)) 281index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 295int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero); 297if (focusIndex >= 0 && focusIndex < GetItemCount(_hwnd)) 372for (int i = 0, c = GetItemCount(_hwnd); i < c; i++) 374if (sTitle == WindowsTabItem.GetName(_hwnd, i, true)) 393if (!WindowsTab.SupportMultipleSelection (_hwnd)) 395int selectedItem = WindowsTabItem.GetCurrentSelectedItem(_hwnd); 437return SupportMultipleSelection (_hwnd); 457if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 481if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 522Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 581if (!Misc.GetWindowRect(_hwnd, ref viewable)) 679return new WindowsTabItem(_hwnd, this, index, _windowsForms == WindowsFormsHelper.FormControlState.True); 700Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 705return GetUpDownHwnd(_hwnd) != IntPtr.Zero; 754return GetUpDownHwnd(_hwnd); 857Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 916_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 959return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd, _item)); 963return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 974IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 975return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 985if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 994return GetName(_hwnd, _item, _windowsForms == WindowsFormsHelper.FormControlState.True); 1011Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1066if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1086if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1104if (WindowsTab.SupportMultipleSelection(_hwnd) == true) 1129if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1141if (WindowsTab.SupportMultipleSelection(_hwnd) == true) 1157Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero); 1170if (!WindowsTab.SupportMultipleSelection(_hwnd)) 1172int selectedItem = GetCurrentSelectedItem(_hwnd); 1183if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1211if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1263return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1280if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1285return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty; 1290return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd)); 1305if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1307Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1308Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1314Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1324IntPtr hwndParent = _hwnd; 1333string sName = WindowsTabItem.GetName(_hwnd, _item, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (12)
62return Misc.GetTitleBarRect(_hwnd); 70return new int [] { 4, unchecked((int)(long)_hwnd), _item }; 78return Misc.ProxyGetText(_hwnd); 116int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y)); 137WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 165return WindowsMenu.CreateSystemMenu (_hwnd, this); 171return new TitleBarButton (_hwnd, this, item); 203Misc.ProxyGetTitleBarInfo(_hwnd, out ti); 363Rect[] rects = Misc.GetTitlebarRects(_hwnd); 407if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 436Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero); 450Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (30)
217NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (ToolbarItem.GetBoundingRectangle (_hwnd, item)); 235int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero); 239Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, NativeMethods.CHILD_SELF); 245return new WindowsToolbarAsMenu(_hwnd, this, focusIndex, acc); 249return new WindowsToolbar(_hwnd, this, focusIndex); 264string name = Misc.ProxyGetText(_hwnd); 300if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 306if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0) 308Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, item + 1); 313return new ToolbarItemAsMenuItem(_hwnd, this, item, tbb.idCommand, acc); 317return new ToolbarItem(_hwnd, this, item, tbb.idCommand); 336return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero); 369if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 375bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0; 376int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero); 387IntPtr hwndParent = Misc.GetParent(_hwnd); 435if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 458return GetBoundingRectangle(_hwnd, _item); 475return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0; 521Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 583return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 605int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero); 608return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 631if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 642IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 643return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _idCommand); 649if (!SafeNativeMethods.IsWindowEnabled(_hwnd) 650|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 657if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 684if (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)
190string className = Misc.ProxyGetClassName(_hwnd); 203return Misc.ProxyGetText(_hwnd);
MS\Internal\AutomationProxies\WindowsTreeView.cs (79)
162IntPtr hNext = GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 165return new TreeViewItem (_hwnd, this, hNext, (int) TVItem.TopLevel); 189IntPtr hPrev = GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 191return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null; 195IntPtr hChild = GetRoot (_hwnd); 202for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 207return new TreeViewItem (_hwnd, this, hChild, (int) TVItem.TopLevel); 218hChild = GetRoot (_hwnd); 239IntPtr hChild = GetRoot (_hwnd); 244for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 258IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 269IntPtr treeItem = GetSelection (_hwnd); 286IntPtr treeItem = GetSelection(_hwnd); 309return (IntPtr.Zero != GetSelection (_hwnd)); 382return new TreeViewItem (_hwnd, this, hItem, depth); 387return CreateParents (_hwnd, hItem); 752return IsItemExpanded (_hwnd, _hItem) ? NextSibling (child) : null; 761return IsItemExpanded (_hwnd, _hItem) ? PreviousSibling (child) : null; 768return IsItemExpanded (_hwnd, _hItem) ? FirstChild () : null; 775return IsItemExpanded (_hwnd, _hItem) ? LastChild () : null; 796else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 819if (_nativeAcc == null && System.Environment.OSVersion.Version.Major >= 6 && Misc.IsWindowInGivenProcess(_hwnd, "explorer")) 822_nativeAcc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, childId); 842return WindowsTreeView.GetItemRect(_hwnd, _hItem, true).ToRect(false); 851NativeMethods.Win32Rect itemRect = GetItemRect(_hwnd, _hItem, true); 854if (!Misc.IsItemVisible(_hwnd, ref itemRect)) 870IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 871return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 932return WindowsTreeView.SelectItem (_hwnd, _hItem); 948return new int [4] { ProxySimple.Win32ProviderRuntimeIdBase, unchecked((int)(long)_hwnd), highPart, lowPart }; 952return new int[3] { ProxySimple.Win32ProviderRuntimeIdBase, (int)_hwnd, (int)_hItem }; 964if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 984if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 995if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1013if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero) 1020if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 1030if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1080if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1100WindowsTreeView.Expand (_hwnd, _hItem); 1109if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1125WindowsTreeView.Collapse (_hwnd, _hItem); 1151if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1158if (!WindowsTreeView.SetItemText(_hwnd, _hItem, val)) 1191if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1204WindowsTreeView.SetCheckState(_hwnd, _hItem, GetToggleState() != ToggleState.On); 1226if (!WindowScroll.IsScrollable(_hwnd)) 1231Misc.SetFocus(_hwnd); 1235Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem); 1288int selected = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TVM_GETITEMSTATE, _hItem, new IntPtr(NativeMethods.TVIS_SELECTED)); 1311if (!WindowsTreeView.IsItemExpanded (_hwnd, current._hItem)) 1323IntPtr hNext = WindowsTreeView.GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 1325return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1333IntPtr hPrev = WindowsTreeView.GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 1335return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1341IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1343return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1349if (!IsItemExpanded (_hwnd, _hItem)) 1354IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1359for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild)) 1364return new TreeViewItem(_hwnd, this, hChild, _item + 1); 1373bool expanded = WindowsTreeView.IsItemExpanded (_hwnd, _hItem); 1381bool hasChildren = WindowsTreeView.TreeViewItem_HasChildren (_hwnd, _hItem); 1410state = (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1461NativeMethods.Win32Rect rectItem = WindowsTreeView.GetItemRect(_hwnd, _hItem, true); 1472if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1487int selected = WindowsTreeView.GetItemState(_hwnd, _hItem, NativeMethods.TVIS_SELECTED); 1507isCheckbox = WindowsTreeView.CheckState.NoCheckbox != (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1536return WindowsTreeView.GetItemText (_hwnd, _hItem); 1544Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1545Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1551if (WindowsTreeView.GetItem(_hwnd, _hItem, NativeMethods.TVIF_IMAGE | NativeMethods.TVIF_STATE, out treeItem)) 1572IntPtr address = UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr"); 1578int numStates = unchecked((int)UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapCount")); 1591using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 1633return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero; 1643int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (21)
101return new SpinButtonItem(_hwnd, IsSpinnerElement()? _parent : this, (int)item); 126if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd) && IsWinformUpdown(_hwnd)) 192NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SpinButtonItem.GetBoundingRectangle (_hwnd, item)); 211if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 231Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 234Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 297IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 348int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 375IntPtr hwndBuddy = HwndBuddy(_hwnd); 385int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 399int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 472return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)_item); 516if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 531if (IsHorizontal(_hwnd) && Misc.IsLayoutRTL(_hwnd)) 537Rect rc = GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)item); 540if (!Misc.GetWindowRect(_hwnd, ref updownRect)) 550Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, center); 551Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, center); 628IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WinFormsSpinner.cs (4)
316return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent, _item); 434return _elEdit._hwnd == hwnd;