80 references to XSendMessage
UIAutomationClientSideProviders (80)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (6)
466return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 473bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 485bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 991Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero)) 1000Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero)) 1009Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\Misc.cs (2)
337return XSendMessage.GetItemText(hwndToolTip, tool); 1939string name = XSendMessage.GetItemText(hwnd, tool);
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
717return XSendMessage.GetItemText(hwnd, NativeMethods.WM_USER + NativeMethods.CB_GETLBTEXT, index, len);
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (1)
155if (XSendMessage.XSend(hwnd, WM_GETCONTROLNAME, new IntPtr(Misc.MaxLengthNameProperty), ref winFormsID, Misc.MaxLengthNameProperty))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (4)
216bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 281return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 399return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 496bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
740return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen);
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1273if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1389return XSendMessage.GetItemText(hwnd, item); 1423result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1432result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1496if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1797if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType()))) 1826return XSendMessage.SetItem(hwnd, item, lvitem);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (11)
102return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 113return XSendMessage.GetItemText(_hwnd, group); 159XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 247XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 307XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 338bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 430XSendMessage.GetGroupInfo(hwnd, ref group); // ignore return code. 473if (XSendMessage.GetItem(hwnd, ref item)) 495bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 510XSendMessage.GetGroupInfo(hwnd, ref groupInfo); // ignore return code. 613if (!XSendMessage.SetGroupInfo(_hwnd, group))
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (7)
211if (!XSendMessage.GetItem(_hwnd, ref item) || GetGroup(item.iGroupID) == null) 384while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType()))) 391bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 426if (XSendMessage.GetItem(hwnd, ref item) && manager.Add(item.iGroupID, item.iItem)) 464XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck); 700XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT,
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (3)
76XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 93XSendMessage.GetGroupInfo(_hwnd, ref groupInfo); // ignore return code. 109return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_SUBSET);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
136if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType()))) 737if (XSendMessage.GetItem(hwnd, ref item))
MS\Internal\AutomationProxies\WindowsRebar.cs (5)
205return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 398if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 432if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsSlider.cs (4)
461XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 473XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (2)
560return XSendMessage.GetItemRect(hwnd, NativeMethods.SB_GETRECT, item); 601return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (7)
164index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 316if (!XSendMessage.GetItem(_hwnd, index, ref item)) 560return XSendMessage.GetItemText(_hwnd, index, hdi); 574result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 685if (XSendMessage.GetItem(_hwnd, _item, ref item)) 726Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item);
MS\Internal\AutomationProxies\WindowsTab.cs (7)
279index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 659result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 1181if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1278if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1352return XSendMessage.GetItemText(hwnd, itemIndex, tcitem);
MS\Internal\AutomationProxies\WindowsToolbar.cs (5)
297if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 366if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 564return XSendMessage.GetItemRect(hwnd, NativeMethods.TB_GETITEMRECT, item); 605return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 628if (XSendMessage.GetItem(_hwnd, _item, ref tbb))
MS\Internal\AutomationProxies\WindowsTreeView.cs (5)
256IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 513return XSendMessage.SetItem(hwnd, treeItem); 560if (!XSendMessage.XSend(hwnd, NativeMethods.TVM_GETITEMRECT, partialDisplay, rectangle, Marshal.SizeOf(rc.GetType()))) 581return XSendMessage.GetItem(hwnd, ref treeItem); 591return XSendMessage.GetItemText(hwnd, treeItem);