80 references to XSendMessage
UIAutomationClientSideProviders (80)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (6)
465return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 472bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 484bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 990Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero)) 999Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero)) 1008Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\Misc.cs (2)
331return XSendMessage.GetItemText(hwndToolTip, tool); 1918string name = XSendMessage.GetItemText(hwnd, tool);
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
712return XSendMessage.GetItemText(hwnd, NativeMethods.WM_USER + NativeMethods.CB_GETLBTEXT, index, len);
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (1)
154if (XSendMessage.XSend(hwnd, WM_GETCONTROLNAME, new IntPtr(Misc.MaxLengthNameProperty), ref winFormsID, Misc.MaxLengthNameProperty))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (4)
211bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 276return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 395return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 492bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
730return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen);
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1269if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1385return XSendMessage.GetItemText(hwnd, item); 1420result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1429result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1493if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1794if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType()))) 1824return XSendMessage.SetItem(hwnd, item, lvitem);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (11)
101return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 112return XSendMessage.GetItemText(_hwnd, group); 158XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 246XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 306XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 337bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 429XSendMessage.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) 386while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType()))) 393bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 428if (XSendMessage.GetItem(hwnd, ref item) && manager.Add(item.iGroupID, item.iItem)) 466XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck); 702XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT,
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (3)
77XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 94XSendMessage.GetGroupInfo(_hwnd, ref groupInfo); // ignore return code. 110return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_SUBSET);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
133if (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)
206return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 399if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 435if (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)
460XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 472XSendMessage.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)
161index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 313if (!XSendMessage.GetItem(_hwnd, index, ref item)) 554return XSendMessage.GetItemText(_hwnd, index, hdi); 568result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 679if (XSendMessage.GetItem(_hwnd, _item, ref item)) 717Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item);
MS\Internal\AutomationProxies\WindowsTab.cs (7)
276index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 653result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 1175if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1272if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1346return XSendMessage.GetItemText(hwnd, itemIndex, tcitem);
MS\Internal\AutomationProxies\WindowsToolbar.cs (5)
293if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 362if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 560return XSendMessage.GetItemRect(hwnd, NativeMethods.TB_GETITEMRECT, item); 601return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 624if (XSendMessage.GetItem(_hwnd, _item, ref tbb))
MS\Internal\AutomationProxies\WindowsTreeView.cs (5)
252IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 508return XSendMessage.SetItem(hwnd, treeItem); 555if (!XSendMessage.XSend(hwnd, NativeMethods.TVM_GETITEMRECT, partialDisplay, rectangle, Marshal.SizeOf(rc.GetType()))) 576return XSendMessage.GetItem(hwnd, ref treeItem); 586return XSendMessage.GetItemText(hwnd, treeItem);