34 references to NativeMethods
System.Windows.Controls.Ribbon (34)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (6)
365return HandleCollector.Add(hDc, NativeMethods.CommonHandles.HDC); 372HandleCollector.Remove((IntPtr)hDC, NativeMethods.CommonHandles.HDC); 402internal static NativeMethods.RECT FromRect(Rect rect) 404NativeMethods.RECT rc = new NativeMethods.RECT(); 423internal static Rect ToRect(NativeMethods.RECT rc)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (6)
270var hdcDesktop = new HandleRef(null, NativeMethods.GetDC(new HandleRef())); 273int sysBitDepth = NativeMethods.GetDeviceCaps(hdcDesktop, (int)NativeMethods.DeviceCap.BITSPIXEL); 274sysBitDepth *= NativeMethods.GetDeviceCaps(hdcDesktop, (int)NativeMethods.DeviceCap.PLANES); 287NativeMethods.ReleaseDC(new HandleRef(), hdcDesktop);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (8)
1605NativeMethods.RECT popupPlacementTargetRect = new NativeMethods.RECT(); 1610IntPtr monitorPtr = NativeMethods.MonitorFromRect(ref popupPlacementTargetRect, NativeMethods.MONITOR_DEFAULTTONEAREST); 1613NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX(); 1615NativeMethods.GetMonitorInfo(new HandleRef(null, monitorPtr), monitorInfo); 1616NativeMethods.RECT rect = monitorInfo.rcMonitor;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (11)
171NativeMethods.RECT rect = new NativeMethods.RECT() { top = 0, bottom = 0, left = 0, right = 0 }; 172NativeMethods.RECT nativeBounds = NativeMethods.FromRect(targetBoundingBox); 174IntPtr monitor = NativeMethods.MonitorFromRect(ref nativeBounds, NativeMethods.MONITOR_DEFAULTTONEAREST); 177NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX(); 179monitorInfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX)); 180NativeMethods.GetMonitorInfo(new HandleRef(null, monitor), monitorInfo); 194return NativeMethods.ToRect(rect);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1034capturedHwnd = NativeMethods.GetCapture(); 2542NativeMethods.MessageBeep(0);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
741return TimeSpan.FromMilliseconds(NativeMethods.GetDoubleClickTime() * 2);