MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (9)
170if ((WindowsListView.GetItemRect(hwnd, item, NativeMethods.LVIR_ICON, out rc) && rc.left != rc.right) || (WindowsListView.GetItemRect(hwnd, item, NativeMethods.LVIR_LABEL, out rc) && rc.left != rc.right))
172int right = controlRectangle.left + (rc.left - controlRectangle.left);
174return new NativeMethods.Win32Rect (controlRectangle.left, rc.top, right, rc.bottom);
200return new NativeMethods.Win32Rect (wholeItem.left, wholeItem.top, selectable.left, wholeItem.bottom);
255NativeMethods.Win32Point pt = new NativeMethods.Win32Point((rc.left + rc.right) / 2, (rc.top + rc.bottom) / 2);
MS\Internal\AutomationProxies\WindowsSlider.cs (10)
514return new Rect (rcChannel.left, rcChannel.top, rcThumb.left - rcChannel.left, rcChannel.bottom - rcChannel.top);
517return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top);
526int dy = rcChannel.right - rcChannel.left;
531return new Rect (rcChannel.left, rcChannel.top, dx, rcThumb.top - rcChannel.top);
534return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top);
537return new Rect (rcChannel.left, rcThumb.bottom, dx, dy);