88 references to GetSystemMetrics
System.Windows.Forms (88)
winforms\Managed\System\WinForms\Cursor.cs (2)
332UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXCURSOR), 333UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYCURSOR)
winforms\Managed\System\WinForms\Screen.cs (1)
68private static bool multiMonitorSupport = (UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CMONITORS) != 0);
winforms\Managed\System\WinForms\SystemInformation.cs (83)
163return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSCREEN), 164UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSCREEN)); 176return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXVSCROLL); 190return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXVSCROLL); 202return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYHSCROLL); 216return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYHSCROLL); 228return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYCAPTION); 241return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXBORDER), 242UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYBORDER)); 271return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXFIXEDFRAME), 272UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYFIXEDFRAME)); 282return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYVTHUMB); 292return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXHTHUMB); 335return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXICON), 336UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYICON)); 348return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXCURSOR), 349UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYCURSOR)); 417return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMENU); 464return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYKANJIWINDOW); 477return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_MOUSEPRESENT) != 0; 489return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYVSCROLL); 509return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXHSCROLL); 524return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXHSCROLL); 539return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_DEBUG) != 0; 552return(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_SWAPBUTTON) != 0); 564return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMIN), 565UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMIN)); 578return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSIZE), 579UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSIZE)); 591return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXFRAME), 592UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYFRAME)); 605return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMINTRACK), 606UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMINTRACK)); 620return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXDOUBLECLK), 621UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYDOUBLECLK)); 648return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXICONSPACING), 649UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYICONSPACING)); 662return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_MENUDROPALIGNMENT) != 0; 675return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_PENWINDOWS) != 0; 688return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_DBCSENABLED) != 0; 700return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CMOUSEBUTTONS); 714return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_SECURE) != 0; 727return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXEDGE), 728UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYEDGE)); 740return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMINSPACING), 741UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMINSPACING)); 754return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSMICON), 755UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSMICON)); 768return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSMCAPTION); 781return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSMSIZE), 782UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSMSIZE)); 795return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMENUSIZE), 796UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMENUSIZE)); 807int compoundValue = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_ARRANGE); 821int compoundValue = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_ARRANGE); 834return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMINIMIZED), 835UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMINIMIZED)); 848return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMAXTRACK), 849UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMAXTRACK)); 862return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMAXIMIZED), 863UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMAXIMIZED)); 875return(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_NETWORK) & 0x00000001) != 0; 887return(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_REMOTESESSION) & 0x00000001) != 0; 903return(BootMode) UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CLEANBOOT); 917return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXDRAG), 918UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYDRAG)); 932return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_SHOWSOUNDS) != 0; 945return new Size(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXMENUCHECK), 946UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYMENUCHECK)); 959return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_MIDEASTENABLED) != 0; 966multiMonitorSupport = (UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CMONITORS) != 0); 983nativeMouseWheelSupport = (UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_MOUSEWHEELPRESENT) != 0); 1017mouseWheelPresent = (UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_MOUSEWHEELPRESENT) != 0); 1034return new Rectangle(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_XVIRTUALSCREEN), 1035UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_YVIRTUALSCREEN), 1036UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXVIRTUALSCREEN), 1037UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYVIRTUALSCREEN)); 1056return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CMONITORS); 1075return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_SAMEDISPLAYFORMAT) != 0; 1731return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYFOCUSBORDER); 1749return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXFOCUSBORDER); 1766return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSIZEFRAME); 1779return UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSIZEFRAME);
winforms\Managed\System\WinForms\TrackBar.cs (1)
501int cyhscroll = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYHSCROLL);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
1151return GetSystemMetrics(nIndex);