80 references to XSendMessage
UIAutomationClientsideProviders (80)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (6)
474return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 481bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 493bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 999Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero)) 1008Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero)) 1017Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\Misc.cs (2)
348return XSendMessage.GetItemText(hwndToolTip, tool); 1952string name = XSendMessage.GetItemText(hwnd, tool);
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
734return XSendMessage.GetItemText(hwnd, NativeMethods.WM_USER + NativeMethods.CB_GETLBTEXT, index, len);
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (1)
165if (XSendMessage.XSend(hwnd, WM_GETCONTROLNAME, new IntPtr(Misc.MaxLengthNameProperty), ref winFormsID, Misc.MaxLengthNameProperty))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (4)
227bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 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())); 511bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
752return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen);
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1284if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1400return XSendMessage.GetItemText(hwnd, item); 1434result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1442result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1505if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1806if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType()))) 1835return XSendMessage.SetItem(hwnd, item, lvitem);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (11)
111return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_HEADER); 122return XSendMessage.GetItemText(_hwnd, group); 168XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 256XSendMessage.GetGroupInfo(_hwnd, ref group); // ignore return code. 316XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 347bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 439XSendMessage.GetGroupInfo(hwnd, ref group); // ignore return code. 482if (XSendMessage.GetItem(hwnd, ref item)) 504bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 519XSendMessage.GetGroupInfo(hwnd, ref groupInfo); // ignore return code. 622if (!XSendMessage.SetGroupInfo(_hwnd, group))
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (7)
224if (!XSendMessage.GetItem(_hwnd, ref item) || GetGroup(item.iGroupID) == null) 398while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType()))) 405bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 440if (XSendMessage.GetItem(hwnd, ref item) && manager.Add(item.iGroupID, item.iItem)) 478XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck); 716XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT,
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (3)
79XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 96XSendMessage.GetGroupInfo(_hwnd, ref groupInfo); // ignore return code. 112return XSendMessage.GetItemText(_hwnd, group, NativeMethods.LVGF_SUBSET);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
144if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType()))) 745if (XSendMessage.GetItem(hwnd, ref item))
MS\Internal\AutomationProxies\WindowsRebar.cs (5)
223return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 416if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 450if (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)
477XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 489XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (2)
574return XSendMessage.GetItemRect(hwnd, NativeMethods.SB_GETRECT, item); 615return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (7)
177index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 329if (!XSendMessage.GetItem(_hwnd, index, ref item)) 573return XSendMessage.GetItemText(_hwnd, index, hdi); 587result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 698if (XSendMessage.GetItem(_hwnd, _item, ref item)) 739Rect 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)
307if (!XSendMessage.GetItem(_hwnd, item, ref tbb)) 377if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 575return XSendMessage.GetItemRect(hwnd, NativeMethods.TB_GETITEMRECT, item); 616return XSendMessage.GetItemText(_hwnd, NativeMethods.TB_GETBUTTONTEXT, _idCommand, len); 639if (XSendMessage.GetItem(_hwnd, _item, ref tbb))
MS\Internal\AutomationProxies\WindowsTreeView.cs (5)
267IntPtr hItem = XSendMessage.HitTestTreeView(_hwnd, x, y); 524return XSendMessage.SetItem(hwnd, treeItem); 571if (!XSendMessage.XSend(hwnd, NativeMethods.TVM_GETITEMRECT, partialDisplay, rectangle, Marshal.SizeOf(rc.GetType()))) 592return XSendMessage.GetItem(hwnd, ref treeItem); 602return XSendMessage.GetItemText(hwnd, treeItem);