1 write to _hwnd
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
75_hwnd = hwnd;
848 references to _hwnd
UIAutomationClientsideProviders (848)
MS\Internal\AutomationProxies\NonClientArea.cs (27)
216int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 238WindowsTitleBar tb = new WindowsTitleBar(_hwnd, this, 0); 312return new int [] { 1, unchecked((int)(long)_hwnd) }; 318if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 363WindowScroll.SetScrollPercent (_hwnd, horizontalPercent, verticalPercent, true); 369WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 377return (double) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 386return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 395return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 404return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 413return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 422return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 468if (WindowsScrollBar.HasHorizontalScrollBar (_hwnd)) 472if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 473return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 475return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_HORZ); 480if (WindowsScrollBar.HasVerticalScrollBar (_hwnd)) 484if (Misc.ProxyGetClassName(_hwnd) == "SysListView32") 485return new WindowsListViewScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 487return new WindowsScrollBar (_hwnd, this, (int) item, NativeMethods.SB_VERT); 494if (WindowsTitleBar.HasTitleBar (_hwnd)) 496return new WindowsTitleBar (_hwnd, this, (int) item); 511if (WindowsGrip.IsGripPresent(_hwnd, false)) 513return new WindowsGrip(_hwnd, this, (int)item); 546IntPtr menu = UnsafeNativeMethods.GetMenu(_hwnd); 549menuProxy = new WindowsMenu(_hwnd, this, menu, WindowsMenu.MenuType.Toplevel, (int)NonClientItem.Menu); 586if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (15)
107WinEventTracker.AddToNotificationList (_hwnd, _createOnEvent, aEvents, cEvents); 137WinEventTracker.RemoveToNotificationList (_hwnd, aEvents, null, cEvents); 148return PtInClientRect (_hwnd, x, y) ? this : null; 158accessKey = GetLabelAccessKey(_hwnd); 172if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 174string sPersistentID = WindowsFormsHelper.WindowsFormsID (_hwnd); 182if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 203IntPtr label = Misc.GetLabelhwnd(_hwnd); 212name = Misc.ProxyGetText(_hwnd); 237_controlLabel = Misc.GetLabelhwnd(_hwnd); 250if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 255IntPtr hwndParent = Misc.GetParent(_hwnd); 282int idChild = Misc.GetWindowId(_hwnd); 283string text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, idChild); 286text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, 0);
MS\Internal\AutomationProxies\ProxySimple.cs (22)
107if (_hwnd == IntPtr.Zero) 114if (!Misc.GetWindowRect(_hwnd, ref controlRectangle)) 167id[1] = _hwnd.ToInt32(); 181if (_hwnd == IntPtr.Zero || (GetParent() != null && GetParent()._hwnd == _hwnd)) 186return AutomationInteropProvider.HostProviderFromHandle(_hwnd); 221return Misc.IsEnabled(_hwnd); 232Misc.GetWindowThreadProcessId(_hwnd, out pid); 254return Misc.GetFocusedWindow() == _hwnd ? IsFocused() : false; 276return WindowsFormsHelper.IsWindowsFormsControl(_hwnd) ? "WinForm" : "Win32"; 285if (Misc.GetFocusedWindow() == _hwnd && IsFocused()) 291if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 357string sRawName = Misc.GetControlName(_hwnd, false); 406EventManager.DispatchEvent(this, _hwnd, eventId, idProp, idObject); 546if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 596Misc.GetClientRectInScreenCoordinates(_hwnd, ref rcOutside); 620return ClickablePoint.GetPoint(_hwnd, alIn, alOut, ref pt); 656_IAccessible = Accessible.AccessibleObjectFromWindow(_hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK ? acc.IAccessible : null; 672return _hwnd; 681return Misc.GetWindowStyle(_hwnd); 690return Misc.GetWindowExStyle(_hwnd);
MS\Internal\AutomationProxies\WindowsAltTab.cs (8)
53GetAltTabInfo(_hwnd, 0, ref _altTabInfo, null); 146if (Misc.MapWindowPoints(System.IntPtr.Zero, _hwnd, ref pt, 1)) 150if(Misc.GetClientRect(_hwnd, ref clientRect)) 211altTabItem = new WindowsAltTabItem(_hwnd, this, item); 230if (GetAltTabInfo(_hwnd, -1, ref altTabInfo, null)) 361return GetBoundingRect().ToRect(Misc.IsControlRTL(_hwnd)); 374if (WindowsAltTab.GetAltTabInfo(_hwnd, _item, ref altTabInfo, itemText)) 406if(!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2))
MS\Internal\AutomationProxies\WindowsButton.cs (22)
269if (!WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms) && IsStartButton()) 274return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 280return SafeNativeMethods.IsWindowVisible(_hwnd); 409IntPtr hwndParent = Misc.GetParent(_hwnd); 481if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 490Misc.SetFocus(_hwnd); 514Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero); 528Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true); 535Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true); 569if (!Misc.GetClassName(_hwnd).Equals("Button")) 577return Misc.InTheShellProcess(_hwnd) && UnsafeNativeMethods.GetProp(_hwnd, "StartButtonTag") == new IntPtr(304); 581IntPtr hwndParent = Misc.GetParent(_hwnd); 595if (!Misc.GetClassName(_hwnd).Equals("Button")) 600IntPtr hwndParent = Misc.GetParent(_hwnd); 615IntPtr hwndParent = _hwnd; 660int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero); 683if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 685Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindRadioButtonChild), (void*)&radiobuttonChildFound); 714return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd)); 720if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 723Misc.EnumChildWindows(_hwnd, new NativeMethods.EnumChildrenCallbackVoid(FindSelectedRadioButtonChild), (void*)&selectedRadiobutton);
MS\Internal\AutomationProxies\WindowsComboBox.cs (34)
137if (GetDroppedState (_hwnd)) 143if (GetComboInfo(_hwnd, ref cbInfo)) 158return rcCombo.ToRect(Misc.IsControlRTL(_hwnd)); 167if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentCmboBx")) 269if (GetComboInfo(_hwnd, ref cbInfo)) 272if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 276return new WindowsComboButton(_hwnd, this, (int)ComboChildren.Button); 313if (GetComboInfo(_hwnd, ref cbInfo)) 350if (GetComboInfo(_hwnd, ref cbInfo)) 389Misc.CheckEnabled(_hwnd); 394if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 404IntPtr hwndParent = Misc.GetParent(_hwnd); 407int id = Misc.GetWindowId(_hwnd); 410Misc.ProxySendMessage(hwndParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 432if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 457Misc.CheckEnabled(_hwnd); 459if (GetDroppedState (_hwnd)) 465Expand (_hwnd); 471Misc.CheckEnabled(_hwnd); 473if (!GetDroppedState (_hwnd)) 479Collapse(_hwnd); 486return (GetDroppedState (_hwnd)) ? ExpandCollapseState.Expanded : ExpandCollapseState.Collapsed; 514IntPtr hwndToAsk = IsComboBoxEx32() ? _hwndEx : _hwnd; 645return Misc.ProxyGetText(IsComboBoxEx32() ? _hwndEx : _hwnd); 651IntPtr hwnd = IsComboBoxEx32() ? _hwndEx : _hwnd; 661if (GetComboInfo(_hwnd, ref cbInfo) && cbInfo.stateButton != NativeMethods.STATE_SYSTEM_INVISIBLE) 663return new WindowsComboButton (_hwnd, this, (int) ComboChildren.Button); 673if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList)) 937if (!WindowsComboBox.GetComboInfo(_hwnd, ref cbInfo)) 941if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 968Misc.CheckEnabled(_hwnd); 970if (!WindowsComboBox.GetDroppedState (_hwnd)) 972WindowsComboBox.Expand (_hwnd); 976WindowsComboBox.Collapse (_hwnd);
MS\Internal\AutomationProxies\WindowsEditBox.cs (21)
167for (IntPtr hwnd = _hwnd; 180if (IsInsideOfIPAddress(_hwnd)) 235IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 238return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 246IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 249return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 257IntPtr hwndUpDown = WindowsSpinner.GetUpDownFromEdit(_hwnd); 260return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 304Misc.CheckEnabled(_hwnd); 329int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 337result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 645return Misc.ProxyGetText(_hwnd, GetTextLength()); 661if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 784if (Misc.GetClientRect(_hwnd, ref rect) && !rect.IsEmpty) 916IntPtr hdc = Misc.GetDC(_hwnd); 936Misc.ReleaseDC(_hwnd, hdc); 949return Text(_hwnd); 954IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 964if (WindowsComboBox.GetComboInfo(hwndParent, ref cbInfo) && cbInfo.hwndItem == _hwnd) 974IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 985return WindowsSpinner.IsSpinnerEdit(_hwnd);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (8)
93Misc.SetFocus(_provider._hwnd); 326Misc.SetFocus(_provider._hwnd); 380Misc.SetFocus(_provider._hwnd); 444Misc.SetFocus(_provider._hwnd); 463Misc.SetFocus(_provider._hwnd); 480Misc.SetFocus(_provider._hwnd); 503Misc.SetFocus(_provider._hwnd); 509if (Misc.IsReadingRTL(_provider._hwnd))
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (4)
116Misc.SetFocus(_hwnd); 133if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 138if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 143Misc.SetFocus(_hwnd);
MS\Internal\AutomationProxies\WindowsGrip.cs (4)
62if (IsGripPresent(_hwnd, false)) 65if (Misc.GetClientRectInScreenCoordinates(_hwnd, ref client)) 67NativeMethods.SIZE sizeGrip = GetGripSize(_hwnd, false); 69if (Misc.IsLayoutRTL(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (12)
126return Misc.StripMnemonic(RemoveHTMLAnchorTag(Misc.ProxyGetText(_hwnd))); 212if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 227bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 273return new WindowsHyperlinkItem(_hwnd, this, index); 293return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 412return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 440if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 445if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 454if (!Misc.GetWindowRect(_hwnd, ref BoundingRect)) 511bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 523Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 524Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (12)
131if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 152Misc.ProxySendMessage(_hwnd, NativeMethods.IPM_SETADDRESS, IntPtr.Zero, (IntPtr)unchecked((int)ipV4)); 167return Misc.ProxyGetText(_hwnd, IP_ADDRESS_STRING_LENGTH); 175return !Misc.IsEnabled(_hwnd); 257IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 274IntPtr hwndChild = Misc.GetWindow(_hwnd, NativeMethods.GW_CHILD); 368return Misc.ProxyGetText(_hwnd); 380if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 398Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture))); 406string s = WindowsEditBox.Text(_hwnd); 419return !SafeNativeMethods.IsWindowEnabled(_hwnd); 493return WindowsIPAddress.Create(Misc.GetParent(_hwnd), 0, 0);
MS\Internal\AutomationProxies\WindowsListBox.cs (52)
166else if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 169IScrollProvider scroll = NonClientArea.Create(_hwnd, 0) as IScrollProvider; 186return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 195if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 303Misc.GetClientRectInScreenCoordinates(_hwnd, ref listboxrect); 306int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 321int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero); 357if (ListboxItem.IsSelected(_hwnd, itemPos)) 396return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0; 438return new ListboxItem (_hwnd, this, index); 446return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero); 565if (i != skipItem && ListboxItem.IsSelected(_hwnd, i)) 577int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero); 588for (i = 0, count = Length; i < count && !ListboxItem.IsSelected (_hwnd, i); i++) 601if (i != skipItem && ListboxItem.IsSelected (_hwnd, i)) 618return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR; 631if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 703else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 741int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 745if (Misc.GetClassName(_hwnd).Equals("Internet Explorer_TridentLstBox")) 752return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen); 756string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(_item), iTextLen); 783if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 790bool itemSelected = IsSelected (_hwnd, _item); 840if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 846if (ListboxItem.IsSelected (_hwnd, _item) && !_listBox.IsParentedByCombo()) 892if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 897if (!IsSelected(_hwnd, _item)) 912if (!UnSelect(_hwnd, _item)) 923return ListboxItem.IsSelected (_hwnd, _item); 943if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 948if (!WindowScroll.IsScrollable(_hwnd)) 954Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 965if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 969if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 1028return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(_item), new IntPtr(0)) != NativeMethods.LB_ERR; 1032return Select (_hwnd, _item, false); 1053return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1057return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1074Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(_item), ref itemRect); 1075return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty; 1088_windowsForms = WindowsFormsHelper.GetControlState(_hwnd); 1143Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(_item)); 1148Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1158int listBoxStyle = Misc.GetWindowStyle(_hwnd); 1162int idListBox = Misc.GetWindowId(_hwnd); 1166IntPtr hwndListBoxParent = Misc.GetParent(_hwnd); 1170hwndListBoxParent, NativeMethods.WM_COMMAND, wParam, _hwnd); 1178Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1182int id = Misc.GetWindowId(_hwnd); 1186Misc.ProxySendMessageInt(combo._hwnd, NativeMethods.WM_COMMAND, wParam, _hwnd);
MS\Internal\AutomationProxies\WindowsListView.cs (82)
97WinEventTracker.AddToNotificationList (_hwnd, new WinEventTracker.ProxyRaiseEvents (WindowsListView.GroupSpecificEvents), _groupEvents, 3); 184(IsDetailMode (_hwnd) || 185IsImplementingGrid (_hwnd) && GetItemCount (_hwnd) > 0)) 196if (iid == TablePattern.Pattern && IsDetailMode (_hwnd)) 210bool hasGroup = IsGroupViewEnabled (_hwnd); 217count = GetItemCount (_hwnd); 244_groupsCollection.EnsureCreation (_hwnd); 246GroupManager manager = _groupsCollection[_hwnd]; 278if (IsGroupViewEnabled (_hwnd)) 281_groupsCollection.EnsureCreation (_hwnd); 284GroupManager manager = _groupsCollection [_hwnd]; 323int count = GetItemCount (_hwnd); 341bool hasGroup = IsGroupViewEnabled (_hwnd); 342int itemCount = GetItemCount(_hwnd); 354_groupsCollection.EnsureCreation(_hwnd); 356GroupManager manager = _groupsCollection[_hwnd]; 376bool hasGroup = IsGroupViewEnabled (_hwnd); 383_groupsCollection.EnsureCreation (_hwnd); 385GroupManager manager = _groupsCollection [_hwnd]; 400int count = GetItemCount (_hwnd); 410if (PtInListViewHeader (x, y) || !PtInClientRect (_hwnd, x, y)) 416if (IsGroupViewEnabled (_hwnd)) 418_groupsCollection.EnsureCreation (_hwnd); 421GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 430ProxyFragment group = new WindowsListViewGroup (_hwnd, this, groupID); 436NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 443else if (hitTest.flags == NativeMethods.LVHT_NOWHERE && IsDetailMode(_hwnd)) 461hitTest = WindowsListView.SubitemHitTest(_hwnd, new NativeMethods.Win32Point(x, y)); 478if (IsGroupViewEnabled (_hwnd)) 480_groupsCollection.EnsureCreation (_hwnd); 481return WindowsListViewGroup.GetFocusInGroup (_hwnd, this); 485int index = GetItemNext(_hwnd, -1, NativeMethods.LVNI_FOCUSED); 508IntPtr hwndHeader = ListViewGetHeader (_hwnd); 522WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents, 1); 537IntPtr hwndHeader = ListViewGetHeader (_hwnd); 551WinEventTracker.AddToNotificationList(_hwnd, _createOnEvent, aEvents, 1); 564int count = GetItemCount (_hwnd); 565int countSelection = MultiSelected(_hwnd) ? GetSelectedItemCount(_hwnd) : 1; 576for (int itemPos = GetItemNext(_hwnd, -1, NativeMethods.LVNI_SELECTED); itemPos != -1; itemPos = GetItemNext(_hwnd, itemPos, NativeMethods.LVNI_SELECTED)) 596return MultiSelected (_hwnd); 617if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 622WindowScroll.Scroll (_hwnd, horizontalAmount, verticalAmount, true); 628if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 634int size = ApproximateViewRect (_hwnd); 653fScrollSuccess = Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 660if (fScrollSuccess && (((int)horizontalPercent != (int)ScrollPattern.NoScroll && (int)horizontalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd)) 661|| ((int)verticalPercent != (int)ScrollPattern.NoScroll && (int)verticalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd)))) 669Scroll(_hwnd, (IntPtr)dx, (IntPtr)dy); 689return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 699return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 709return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 719return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 729return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 738return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 750int maxRow = GetRowCount (_hwnd); 751int maxColumn = GetColumnCount (_hwnd); 764if (IsDetailMode (_hwnd)) 776return GetRowCount (_hwnd); 784return GetColumnCount (_hwnd); 802IntPtr hwndHeader = ListViewGetHeader (_hwnd); 868return new int [] { ListViewGetView (_hwnd) }; 875return ListViewGetView (_hwnd); 1555return CheckBoxes (_hwnd) ? new int [] { NativeMethods.EventObjectNameChange, NativeMethods.EventObjectStateChange } : new int [] { NativeMethods.EventObjectNameChange }; 1583return new WindowsListViewGroup (_hwnd, this, groupID); 1592bool hasGroup = IsGroupViewEnabled (_hwnd); 1594if ((!hasGroup) && GetItemCount(_hwnd) > 0) 1602_groupsCollection.EnsureCreation(_hwnd); 1604GroupManager manager = _groupsCollection[_hwnd]; 1620return CreateListViewItemOrStartMenuItem(new WindowsListViewGroup(_hwnd, this, groupId), item); 1625return new WindowsListViewGroup (_hwnd, this, item); 1639ProxyFragment proxyFragment = new ListViewItemStartMenu(_hwnd, parent, item, AccessibleObject); 1648return new ListViewItem(_hwnd, parent, item); 1655string className = Misc.GetClassName(Misc.GetParent(_hwnd)); 1679if (!Misc.GetScrollBarInfo(_hwnd, scrollBar, ref scrollBarInfo) || 1695if (!Misc.GetScrollInfo(_hwnd, sbFlag, ref si) || 1719return new ListViewSubItem (_hwnd, lvItem, column, row); 1726int itemCount = GetItemCount (_hwnd); 1729if (IsListMode (_hwnd)) 1842IntPtr hwndHeader = ListViewGetHeader (_hwnd);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (29)
67else if (iid == ExpandCollapsePattern.Pattern && WindowsListView.IsGroupViewEnabled(_hwnd)) 80GroupManager manager = WindowsListView._groupsCollection [_hwnd]; 111return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 122return XSendMessage.GetItemText(_hwnd, group); 136GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 168XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 189GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 226GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 243GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 256XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 295NativeMethods.LVHITTESTINFO_INTERNAL hitTest = WindowsListView.SubitemHitTest (_hwnd, pt); 305return new ListViewItem (_hwnd, this, hitTest.iItem); 316XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 321GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 338int groupIndex = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero); 347bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 371int maxRow = GetRowCount (_hwnd, ID); 372int maxColumn = GetColumnCount(_hwnd, ID); 384if (WindowsListView.IsDetailMode (_hwnd)) 396return GetRowCount (_hwnd, ID); 404return GetColumnCount (_hwnd, ID); 414if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 427return IsCollapsed(_hwnd, _groupID); 600return new ListViewItem (_hwnd, this, index); 622if (!XSendMessage.SetGroupInfo(_hwnd, group)) 633GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 640return new ListViewSubItem (_hwnd, lvItem, column, lvitemIndex); 652GroupManager.GroupInfo groupInfo = GetGroupInfo (_hwnd, ID); 836return new ListViewGroupSubsetLink(_hwnd, this, item, _groupID);
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (4)
79XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 80Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2); 96XSendMessage.GetGroupInfo(_hwnd, ref groupInfo); // ignore return code. 112return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_SUBSET);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (83)
72if (iid == InvokePattern.Pattern && WindowsListView.ListViewInvokable(_hwnd)) 82if (iid == ValuePattern.Pattern && WindowsListView.ListViewEditable (_hwnd)) 87if (iid == GridItemPattern.Pattern && IsImplementingGrid (_hwnd)) 92if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd, _item)) 97if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 124WindowsListView._groupsCollection.EnsureCreation (_hwnd); 126GroupManager manager = WindowsListView._groupsCollection[_hwnd]; 144if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType()))) 146if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRectangle, 2)) 158if (WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_BOUNDS, out itemRectangle)) 201string text = GetText(_hwnd, _item, 0); 224return WindowsListView.SetItemFocused (_hwnd, _item); 244&& IsItemWithCheckbox(_hwnd, _item)) 268if (WindowsListView.IsDetailMode (_hwnd)) 271int countCol = GetSubItemCount (_hwnd); 288if (IsItemWithCheckbox(_hwnd, _item) && item == 0) 292else if (WindowsListView.IsDetailMode (_hwnd)) 294int countCol = GetSubItemCount (_hwnd); 307if (IsItemWithCheckbox(_hwnd, _item)) 311else if (WindowsListView.IsDetailMode(_hwnd)) 313int countCol = GetSubItemCount (_hwnd); 326if (WindowsListView.IsDetailMode (_hwnd)) 328int countCol = GetSubItemCount (_hwnd); 336if (IsItemWithCheckbox(_hwnd, _item)) 348if (IsItemWithCheckbox (_hwnd, _item)) 350NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _item); 354return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 358if (WindowsListView.IsDetailMode (_hwnd)) 361return ListViewSubItem.ElementProviderFromPoint (_hwnd, this, _item, x, y); 373int columns = ListViewItem.GetSubItemCount (_hwnd); 376int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 395if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 401if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd, _item)) 407WindowsListView.UnselectAll (_hwnd); 410if (!WindowsListView.SelectItem(_hwnd, _item)) 420if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 426if (WindowsListView.IsItemSelected (_hwnd, _item)) 432if (!WindowsListView.MultiSelected(_hwnd)) 439if (selectionRequired || WindowsListView.GetSelectedItemCount(_hwnd) > 0) 448if (!WindowsListView.SelectItem(_hwnd, _item)) 458if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 464if (!WindowsListView.IsItemSelected (_hwnd, _item)) 470if (!WindowsListView.MultiSelected (_hwnd)) 484if (!WindowsListView.UnSelectItem(_hwnd, _item)) 495return WindowsListView.IsItemSelected (_hwnd, _item); 527if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 532if (WindowsListView.Scrollable (_hwnd)) 535WindowsListView.EnsureVisible (_hwnd, _item, true); 556if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 561SetValue(val, _hwnd, _item); 569return ListViewItem.GetText (_hwnd, _item, 0); 578return !WindowsListView.ListViewEditable (_hwnd); 591if (WindowsListView.IsGroupViewEnabled (_hwnd)) 597if (WindowsListView.IsListMode (_hwnd)) 599int itemCount = WindowsListView.GetItemCount (_hwnd); 600int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 606int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 616if (WindowsListView.IsGroupViewEnabled (_hwnd)) 622if (WindowsListView.IsListMode (_hwnd)) 624int itemCount = WindowsListView.GetItemCount (_hwnd); 625int rowCount = WindowsListView.GetRowCountListMode (_hwnd, itemCount); 630int columnCount = WindowsListView.GetColumnCountOtherModes (_hwnd); 668if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 674if (!WindowsListView.Scrollable(_hwnd)) 680WindowsListView.EnsureVisible(_hwnd, _item, false); 856return WindowsListView.IsItemFocused (_hwnd, _item); 864IntPtr hwndHeader = WindowsListView.ListViewGetHeader(_hwnd); 870&& Misc.GetClientRectInScreenCoordinates(_hwnd, ref listViewRect)) 901return new ListViewSubItem (_hwnd, this, index, _item); 906return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 933if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 938if (WindowsListView.IsDetailMode (_hwnd) && !WindowsListView.FullRowSelect (_hwnd)) 944if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 954if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 968Misc.MouseClick(clickPoint.x, clickPoint.y, !WindowsListView.ListViewSingleClickActivate(_hwnd)); 996int groupID = GetGroupID (_hwnd, _item); 1001GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 1010int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID); 1029int groupID = GetGroupID (_hwnd, _item); 1034GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 1043int columnCount = WindowsListViewGroup.GetColumnCountExternal (_hwnd, groupID);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (12)
71return ListViewCheckBoxRect(_hwnd, _listviewItem).ToRect(false); 81NativeMethods.Win32Rect itemRect = ListViewCheckBoxRect(_hwnd, _listviewItem); 87if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect)) 108return WindowsListView.GetItemToolTipText(_hwnd); 117string name = ListViewItem.GetText(_hwnd, _listviewItem, 0); 220ListViewItem.CheckState current = (ListViewItem.CheckState) WindowsListView.GetCheckedState (_hwnd, _listviewItem); 247if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 252Misc.SetFocus(_hwnd); 254NativeMethods.Win32Rect rc = ListViewCheckBoxRect(_hwnd, _listviewItem); 257if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 260Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 261Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (9)
59if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 68if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 87bool isVerticalScroll = IsScrollBarVertical(_hwnd, _sbFlag); 88if (isVerticalScroll && WindowsListView.InReportView (_hwnd)) 90Misc.SetScrollPos(_hwnd, _sbFlag, pos, true); 95int size = WindowsListView.ApproximateViewRect (_hwnd); 114if (WindowsListView.Scroll (_hwnd, (IntPtr) dx, (IntPtr) dy)) 119if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 139WindowsListView.Scroll (_hwnd, (IntPtr) dx, (IntPtr) dy);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (26)
64if (iid == ValuePattern.Pattern && _item == 0 && WindowsListView.ListViewEditable (_hwnd)) 88if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent, _item, lvir, out itemRectangle)) 96if (WindowsListView.FullRowSelect(_hwnd) && !WindowsListView.HasJustifyColumnsExStyle(_hwnd) && 97!WindowsListView.IsIconView(_hwnd) && _item == 0 && 1 < ListViewItem.GetSubItemCount(_hwnd)) 101if (!WindowsListView.GetSubItemRect(_hwnd, _itemParent, 1, NativeMethods.LVIR_BOUNDS, out itemRectangle1)) 107if (Misc.IsControlRTL(_hwnd)) 117if (ListViewItem.IsItemWithCheckbox (_hwnd, _itemParent)) 119NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _itemParent); 122if (Misc.IsControlRTL(_hwnd)) 176IntPtr ancestor = _hwnd; 198return WindowsListView.GetItemToolTipText(_hwnd); 207string name = ListViewItem.GetText(_hwnd, _itemParent, _item); 216return WindowsListView.SetItemFocused (_hwnd, this._itemParent); 226if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 231ListViewItem.SetValue (val, _hwnd, _itemParent); 239return ListViewItem.GetText (_hwnd, _itemParent, _item); 247return !WindowsListView.ListViewEditable (_hwnd); 260if (!WindowsListView.IsGroupViewEnabled (_hwnd)) 268int groupID = ListViewItem.GetGroupID (_hwnd, _itemParent); 272GroupManager.GroupInfo groupInfo = WindowsListViewGroup.GetGroupInfo (_hwnd, groupID); 335IntPtr hwndHeader = WindowsListView.ListViewGetHeader (_hwnd); 381if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 383int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 387return WindowsListView.IsItemFocused (_hwnd, _itemParent);
MS\Internal\AutomationProxies\WindowsMenu.cs (31)
100_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 114_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 154if (_type == MenuType.Submenu && GetHierarchyParent(_hwnd) == null && GetSystemPopupParent() != null) 355return new int[] { 1, unchecked((int)(long)_hwnd), unchecked((int)(long)_hmenu) }; 514return new MenuItem(_hwnd, this, index, _hmenu, _type); 817if (!GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 829if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 834if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 847if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_MENU, 0, out mbi)) 1232if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1266if (GetMenuBarInfo(_hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi)) 1275if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 1280if (!Misc.ProxyGetTitleBarInfo(_hwnd, out ti)) 1295if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1404if (!Misc.IsEnabled(_hwnd)) 1446if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1465if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd) 2040if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2085if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2109hwndSubMenu != _hwnd; 2139Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_KEYMENU, (IntPtr)Convert.ToInt32(' ')); 2247if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2261if (Misc.ProxyGetGUIThreadInfo(0, out gui) && _hwnd == gui.hwndActive) 2277return Misc.SetFocus(_hwnd); 2599if (_hwnd == IntPtr.Zero) 2605using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 2664return SafeNativeMethods.IsWindowEnabled(_hwnd); 2682return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2697return new MenuItem(_hwnd, _parent, nextItem, _hmenu, _menuType); 2733if (new MenuItem (_hwnd, this._parent, i, _hmenu, _menuType).HotKey == chHotKey) 2948return _hwnd;
MS\Internal\AutomationProxies\WindowsProgressbar.cs (3)
171int cur = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 172int min = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, new IntPtr(1), IntPtr.Zero); 173int max = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsRebar.cs (10)
142if (!Misc.GetWindowRect(_hwnd, ref rebarRect)) 205return new RebarBandItem (_hwnd, this, index); 212return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero); 223return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 296return GetBoundingRectangle (_hwnd, _item); 305IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 306return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 391if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 396Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 450if (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)
179if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 190if (Misc.IsBitSet(WindowStyle, NativeMethods.ES_NUMBER) && !WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 205int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 212result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 607return Misc.ProxyGetText(_hwnd); 723IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (6)
76Misc.SetFocus(_pattern._hwnd); 277Misc.SetFocus(_pattern._hwnd); 295Misc.SetFocus(_pattern._hwnd); 327Misc.SetFocus(_pattern._hwnd); 349Misc.SetFocus(_pattern._hwnd); 373Misc.SetFocus(_pattern._hwnd);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (28)
136return (iid == RangeValuePattern.Pattern && WindowScroll.Scrollable (_hwnd, _sbFlag) && HasValuePattern (_hwnd, _sbFlag)) ? this : null; 157if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi)) 177if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_parent._hwnd))) 208return SafeNativeMethods.IsWindowVisible(_hwnd); 217if (SafeNativeMethods.IsWindowVisible(_hwnd) && 232return IsEnabled() && Misc.IsEnabled(_hwnd); 236return IsScrollBarVertical(_hwnd, _sbFlag) ? OrientationType.Vertical : OrientationType.Horizontal; 281IsScrollBarVertical(_hwnd, _sbFlag) 301if (item == ScrollBarItem.UpArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 321if (item == ScrollBarItem.DownArrow && !IsScrollBarWithThumb (_hwnd, _sbFlag)) 348NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect(WindowsScrollBarBits.GetBoundingRectangle(_hwnd, this, item, _sbFlag)); 352return new WindowsScrollBarBits (_hwnd, this, (int) item, _sbFlag); 382return !Misc.IsEnabled(_hwnd) || !HasValuePattern(_hwnd, _sbFlag); 540if (_sbFlag != NativeMethods.SB_CTL || Misc.GetScrollBarInfo(_hwnd, NativeMethods.OBJID_CLIENT, ref sbi)) 542return new WindowsScrollBarBits (_hwnd, this, (int) index, _sbFlag); 574string classname = Misc.GetClassName(_hwnd); 591if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 602if ((Environment.OSVersion.Version.Major < 6) && (_sbFlag == NativeMethods.SB_HORZ) && (Misc.IsControlRTL(_parent._hwnd))) 633if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 642if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 680string classname = Misc.GetClassName(_hwnd); 703Misc.SetScrollPos(_hwnd, _sbFlag, val, true); 709IsScrollBarVertical(_hwnd, _sbFlag) ? NativeMethods.WM_VSCROLL : NativeMethods.WM_HSCROLL; 714Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 716Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 753if (!Misc.GetScrollBarInfo(_hwnd, idObject, ref sbi))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (10)
121return SafeNativeMethods.IsWindowVisible(_hwnd); 136return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem) _item, _sbFlag); 157if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 187if (WindowsScrollBar.IsScrollBarVertical(_hwnd, _sbFlag)) 245if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(parent._parent._hwnd))) 526IntPtr parentHwnd = _sbFlag == NativeMethods.SB_CTL ? Misc.GetWindowParent(_hwnd) : _hwnd; 552if (!Misc.GetScrollInfo(_hwnd, _sbFlag, ref si)) 573Misc.ProxySendMessage(parentHwnd, msg, (IntPtr)wParam, (IntPtr)(parentHwnd == _hwnd ? IntPtr.Zero : _hwnd));
MS\Internal\AutomationProxies\WindowsSlider.cs (16)
154NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SliderItem.GetBoundingRectangle (_hwnd, item, _fHorizontal)); 173if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 184IntPtr parent = Misc.GetParent(_hwnd); 262return new SliderItem (_hwnd, this, (int) item, _fHorizontal); 277int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 282int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 300Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_SETPOS, new IntPtr(1), new IntPtr(val)); 307return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero); 315return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero); 323return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 331return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero); 416return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem) _item, _fHorizontal); 425IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 426return Misc.GetItemToolTipText(_hwnd, hwndToolTip, 0); 447if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 456Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsStatic.cs (2)
145return Misc.AccessKey(Misc.ProxyGetText(_hwnd)); 164return Misc.StripMnemonic(Misc.ProxyGetText(_hwnd));
MS\Internal\AutomationProxies\WindowsStatusBar.cs (17)
120if (hwndChild == IntPtr.Zero || hwndChild == _hwnd) 122hwndChild = GetChildHwnd(_hwnd, accChild.Location); 125if(hwndChild != IntPtr.Zero && hwndChild != _hwnd) 132return new WindowsStatusBarPane(_hwnd, this, index, accChild); 156return Misc.ProxyGetText(_hwnd); 185return item + 1 < count ? CreateStatusBarPane(item + 1) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, -1) : null); 216return Count > 0 ? CreateStatusBarPane(0) : (_fHasGrip ? StatusBarGrip.Create(_hwnd, this, GripItemID) : null); 225return StatusBarGrip.Create(_hwnd, this, GripItemID); 238NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (WindowsStatusBarPane.GetBoundingRectangle (_hwnd, item)); 249NativeMethods.Win32Rect rc = StatusBarGrip.GetBoundingRectangle (_hwnd); 252ProxySimple grip = StatusBarGrip.Create(_hwnd, this, -1); 322hwndChild = GetChildHwnd(_hwnd, accChild.Location); 351return Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETPARTS, IntPtr.Zero, IntPtr.Zero); 473return GetBoundingRectangle (_hwnd, _item); 610int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero); 615return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len); 788return GetBoundingRectangle(_hwnd).ToRect(false);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (30)
173if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 177index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 193int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 260IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor (_hwnd, NativeMethods.GA_PARENT); 329if (!XSendMessage.GetItem(_hwnd, index, ref item)) 341return new HeaderItem (_hwnd, this, index); 349return HeaderItemCount (_hwnd); 445IntPtr hwndParent = Misc.GetParent(_hwnd); 479if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 500Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 501Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 542if (Misc.IsComctrlV6OnOsVerV6orHigher(_hwnd)) 544int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 564int index = OrderToIndex (_hwnd, _item); 573return XSendMessage.GetItemText(_hwnd, index, hdi); 581int index = OrderToIndex (_hwnd, _item); 587result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 592if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2)) 605if (Misc.IsLayoutRTL(_hwnd)) 656if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 687return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1); 698if (XSendMessage.GetItem(_hwnd, _item, ref item)) 712int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 727if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 739Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item); 746Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, new IntPtr(NativeMethods.MK_LBUTTON), center); 747Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 756if (Misc.GetFocusedWindow().Equals(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (53)
48_fIsContent = IsValidControl(_hwnd); 150return IsValidControl(_hwnd); 186int count = GetItemCount(_hwnd); 209int count = GetItemCount(_hwnd); 232int count = GetItemCount(_hwnd); 245int count = GetItemCount(_hwnd); 262if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1)) 279index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 293int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero); 295if (focusIndex >= 0 && focusIndex < GetItemCount(_hwnd)) 370for (int i = 0, c = GetItemCount(_hwnd); i < c; i++) 372if (sTitle == WindowsTabItem.GetName(_hwnd, i, true)) 391if (!WindowsTab.SupportMultipleSelection (_hwnd)) 393int selectedItem = WindowsTabItem.GetCurrentSelectedItem(_hwnd); 435return SupportMultipleSelection (_hwnd); 455if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 479if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 520Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 579if (!Misc.GetWindowRect(_hwnd, ref viewable)) 677return new WindowsTabItem(_hwnd, this, index, _windowsForms == WindowsFormsHelper.FormControlState.True); 698Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 703return GetUpDownHwnd(_hwnd) != IntPtr.Zero; 752return GetUpDownHwnd(_hwnd); 855Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 914_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 957return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd, _item)); 961return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 972IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 973return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 983if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd, ref _windowsForms)) 992return GetName(_hwnd, _item, _windowsForms == WindowsFormsHelper.FormControlState.True); 1009Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1064if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1084if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1102if (WindowsTab.SupportMultipleSelection(_hwnd) == true) 1127if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1139if (WindowsTab.SupportMultipleSelection(_hwnd) == true) 1155Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero); 1168if (!WindowsTab.SupportMultipleSelection(_hwnd)) 1170int selectedItem = GetCurrentSelectedItem(_hwnd); 1181if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1209if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1261return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1278if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1283return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty; 1288return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd)); 1303if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1305Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1306Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1312Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1322IntPtr hwndParent = _hwnd; 1331string sName = WindowsTabItem.GetName(_hwnd, _item, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (12)
70return Misc.GetTitleBarRect(_hwnd); 78return new int [] { 4, unchecked((int)(long)_hwnd), _item }; 86return Misc.ProxyGetText(_hwnd); 124int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y)); 145WindowsMenu sysmenu = WindowsMenu.CreateSystemMenu(_hwnd, this); 173return WindowsMenu.CreateSystemMenu (_hwnd, this); 179return new TitleBarButton (_hwnd, this, item); 211Misc.ProxyGetTitleBarInfo(_hwnd, out ti); 371Rect[] rects = Misc.GetTitlebarRects(_hwnd); 415if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 444Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero); 458Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (30)
224NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (ToolbarItem.GetBoundingRectangle (_hwnd, item)); 242int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero); 246Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, NativeMethods.CHILD_SELF); 252return new WindowsToolbarAsMenu(_hwnd, this, focusIndex, acc); 256return new WindowsToolbar(_hwnd, this, focusIndex); 271string name = Misc.ProxyGetText(_hwnd); 307if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 313if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0) 315Accessible acc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, item + 1); 320return new ToolbarItemAsMenuItem(_hwnd, this, item, tbb.idCommand, acc); 324return new ToolbarItem(_hwnd, this, item, tbb.idCommand); 343return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero); 377if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 383bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0; 384int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero); 395IntPtr hwndParent = Misc.GetParent(_hwnd); 443if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 466return GetBoundingRectangle(_hwnd, _item); 483return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0; 529Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 591return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 613int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero); 616return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 639if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 650IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 651return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _idCommand); 657if (!SafeNativeMethods.IsWindowEnabled(_hwnd) 658|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 665if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 692if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONCHECKED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
80if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 86if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
MS\Internal\AutomationProxies\WindowsTooltip.cs (2)
201string className = Misc.ProxyGetClassName(_hwnd); 214return Misc.ProxyGetText(_hwnd);
MS\Internal\AutomationProxies\WindowsTreeView.cs (79)
171IntPtr hNext = GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 174return new TreeViewItem (_hwnd, this, hNext, (int) TVItem.TopLevel); 198IntPtr hPrev = GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 200return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null; 204IntPtr hChild = GetRoot (_hwnd); 211for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 216return new TreeViewItem (_hwnd, this, hChild, (int) TVItem.TopLevel); 227hChild = GetRoot (_hwnd); 248IntPtr hChild = GetRoot (_hwnd); 253for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 267IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 278IntPtr treeItem = GetSelection (_hwnd); 295IntPtr treeItem = GetSelection(_hwnd); 318return (IntPtr.Zero != GetSelection (_hwnd)); 391return new TreeViewItem (_hwnd, this, hItem, depth); 396return CreateParents (_hwnd, hItem); 761return IsItemExpanded (_hwnd, _hItem) ? NextSibling (child) : null; 770return IsItemExpanded (_hwnd, _hItem) ? PreviousSibling (child) : null; 777return IsItemExpanded (_hwnd, _hItem) ? FirstChild () : null; 784return IsItemExpanded (_hwnd, _hItem) ? LastChild () : null; 805else if (iid == ScrollItemPattern.Pattern && WindowScroll.IsScrollable(_hwnd)) 828if (_nativeAcc == null && System.Environment.OSVersion.Version.Major >= 6 && Misc.IsWindowInGivenProcess(_hwnd, "explorer")) 831_nativeAcc = Accessible.CreateNativeFromEvent(_hwnd, NativeMethods.OBJID_CLIENT, childId); 851return WindowsTreeView.GetItemRect(_hwnd, _hItem, true).ToRect(false); 860NativeMethods.Win32Rect itemRect = GetItemRect(_hwnd, _hItem, true); 863if (!Misc.IsItemVisible(_hwnd, ref itemRect)) 879IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 880return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 941return WindowsTreeView.SelectItem (_hwnd, _hItem); 957return new int [4] { ProxySimple.Win32ProviderRuntimeIdBase, unchecked((int)(long)_hwnd), highPart, lowPart }; 961return new int[3] { ProxySimple.Win32ProviderRuntimeIdBase, (int)_hwnd, (int)_hItem }; 973if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 993if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 1004if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1022if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero) 1029if (!WindowsTreeView.SelectItem(_hwnd, _hItem)) 1039if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1089if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1109WindowsTreeView.Expand (_hwnd, _hItem); 1118if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1134WindowsTreeView.Collapse (_hwnd, _hItem); 1160if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1167if (!WindowsTreeView.SetItemText(_hwnd, _hItem, val)) 1200if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1213WindowsTreeView.SetCheckState(_hwnd, _hItem, GetToggleState() != ToggleState.On); 1235if (!WindowScroll.IsScrollable(_hwnd)) 1240Misc.SetFocus(_hwnd); 1244Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem); 1297int selected = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TVM_GETITEMSTATE, _hItem, new IntPtr(NativeMethods.TVIS_SELECTED)); 1320if (!WindowsTreeView.IsItemExpanded (_hwnd, current._hItem)) 1332IntPtr hNext = WindowsTreeView.GetNextItem (_hwnd, ((TreeViewItem) child)._hItem); 1334return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1342IntPtr hPrev = WindowsTreeView.GetPreviousItem (_hwnd, ((TreeViewItem) child)._hItem); 1344return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1350IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1352return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1358if (!IsItemExpanded (_hwnd, _hItem)) 1363IntPtr hChild = WindowsTreeView.GetFirstChild (_hwnd, _hItem); 1368for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild)) 1373return new TreeViewItem(_hwnd, this, hChild, _item + 1); 1382bool expanded = WindowsTreeView.IsItemExpanded (_hwnd, _hItem); 1390bool hasChildren = WindowsTreeView.TreeViewItem_HasChildren (_hwnd, _hItem); 1419state = (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1470NativeMethods.Win32Rect rectItem = WindowsTreeView.GetItemRect(_hwnd, _hItem, true); 1481if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1496int selected = WindowsTreeView.GetItemState(_hwnd, _hItem, NativeMethods.TVIS_SELECTED); 1516isCheckbox = WindowsTreeView.CheckState.NoCheckbox != (WindowsTreeView.CheckState)WindowsTreeView.GetCheckState(_hwnd, _hItem); 1545return WindowsTreeView.GetItemText (_hwnd, _hItem); 1553Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1554Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1560if (WindowsTreeView.GetItem(_hwnd, _hItem, NativeMethods.TVIF_IMAGE | NativeMethods.TVIF_STATE, out treeItem)) 1581IntPtr address = UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr"); 1587int numStates = unchecked((int)UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapCount")); 1600using (SafeProcessHandle hProcess = new SafeProcessHandle(_hwnd)) 1642return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero; 1652int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (21)
114return new SpinButtonItem(_hwnd, IsSpinnerElement()? _parent : this, (int)item); 139if (WindowsFormsHelper.IsWindowsFormsControl(_hwnd) && IsWinformUpdown(_hwnd)) 205NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect (SpinButtonItem.GetBoundingRectangle (_hwnd, item)); 224if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 244Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 247Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 310IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT); 361int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 388IntPtr hwndBuddy = HwndBuddy(_hwnd); 398int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 412int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 485return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)_item); 529if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 544if (IsHorizontal(_hwnd) && Misc.IsLayoutRTL(_hwnd)) 550Rect rc = GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)item); 553if (!Misc.GetWindowRect(_hwnd, ref updownRect)) 563Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, center); 564Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, center); 641IntPtr hwndParent = NativeMethodsSetLastError.GetAncestor(_hwnd, NativeMethods.GA_PARENT);
MS\Internal\AutomationProxies\WinFormsSpinner.cs (4)
324return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent, _item); 442return _elEdit._hwnd == hwnd;