34 references to NativeMethods
System.Windows.Controls.Ribbon (34)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (6)
361return HandleCollector.Add(hDc, NativeMethods.CommonHandles.HDC); 368HandleCollector.Remove((IntPtr)hDC, NativeMethods.CommonHandles.HDC); 398internal static NativeMethods.RECT FromRect(Rect rect) 400NativeMethods.RECT rc = new NativeMethods.RECT 420internal static Rect ToRect(NativeMethods.RECT rc)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (6)
268var hdcDesktop = new HandleRef(null, NativeMethods.GetDC(new HandleRef())); 271int sysBitDepth = NativeMethods.GetDeviceCaps(hdcDesktop, (int)NativeMethods.DeviceCap.BITSPIXEL); 272sysBitDepth *= NativeMethods.GetDeviceCaps(hdcDesktop, (int)NativeMethods.DeviceCap.PLANES); 285NativeMethods.ReleaseDC(new HandleRef(), hdcDesktop);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (8)
1581NativeMethods.RECT popupPlacementTargetRect = new NativeMethods.RECT 1588IntPtr monitorPtr = NativeMethods.MonitorFromRect(ref popupPlacementTargetRect, NativeMethods.MONITOR_DEFAULTTONEAREST); 1591NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX(); 1593NativeMethods.GetMonitorInfo(new HandleRef(null, monitorPtr), monitorInfo); 1594NativeMethods.RECT rect = monitorInfo.rcMonitor;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (11)
165NativeMethods.RECT rect = new NativeMethods.RECT() { top = 0, bottom = 0, left = 0, right = 0 }; 166NativeMethods.RECT nativeBounds = NativeMethods.FromRect(targetBoundingBox); 168IntPtr monitor = NativeMethods.MonitorFromRect(ref nativeBounds, NativeMethods.MONITOR_DEFAULTTONEAREST); 171NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX 173cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX)) 175NativeMethods.GetMonitorInfo(new HandleRef(null, monitor), monitorInfo); 189return NativeMethods.ToRect(rect);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1027capturedHwnd = NativeMethods.GetCapture(); 2523NativeMethods.MessageBeep(0);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
735return TimeSpan.FromMilliseconds(NativeMethods.GetDoubleClickTime() * 2);