34 references to NativeMethods
System.Windows.Controls.Ribbon (34)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (6)
360return HandleCollector.Add(hDc, NativeMethods.CommonHandles.HDC); 367HandleCollector.Remove((IntPtr)hDC, NativeMethods.CommonHandles.HDC); 397internal static NativeMethods.RECT FromRect(Rect rect) 399NativeMethods.RECT rc = new NativeMethods.RECT 419internal static Rect ToRect(NativeMethods.RECT rc)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (6)
267var hdcDesktop = new HandleRef(null, NativeMethods.GetDC(new HandleRef())); 270int sysBitDepth = NativeMethods.GetDeviceCaps(hdcDesktop, (int)NativeMethods.DeviceCap.BITSPIXEL); 271sysBitDepth *= NativeMethods.GetDeviceCaps(hdcDesktop, (int)NativeMethods.DeviceCap.PLANES); 284NativeMethods.ReleaseDC(new HandleRef(), hdcDesktop);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (8)
1580NativeMethods.RECT popupPlacementTargetRect = new NativeMethods.RECT 1587IntPtr monitorPtr = NativeMethods.MonitorFromRect(ref popupPlacementTargetRect, NativeMethods.MONITOR_DEFAULTTONEAREST); 1590NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX(); 1592NativeMethods.GetMonitorInfo(new HandleRef(null, monitorPtr), monitorInfo); 1593NativeMethods.RECT rect = monitorInfo.rcMonitor;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (11)
164NativeMethods.RECT rect = new NativeMethods.RECT() { top = 0, bottom = 0, left = 0, right = 0 }; 165NativeMethods.RECT nativeBounds = NativeMethods.FromRect(targetBoundingBox); 167IntPtr monitor = NativeMethods.MonitorFromRect(ref nativeBounds, NativeMethods.MONITOR_DEFAULTTONEAREST); 170NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX 172cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX)) 174NativeMethods.GetMonitorInfo(new HandleRef(null, monitor), monitorInfo); 188return NativeMethods.ToRect(rect);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1026capturedHwnd = NativeMethods.GetCapture(); 2522NativeMethods.MessageBeep(0);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
734return TimeSpan.FromMilliseconds(NativeMethods.GetDoubleClickTime() * 2);