/reactos/modules/rostests/apitests/user32/ |
H A D | GetSystemMetrics.c | 21 ret = GetSystemMetrics(0); in Test_GetSystemMetrics() 24 ret = GetSystemMetrics(64); in Test_GetSystemMetrics() 26 ret = GetSystemMetrics(65); in Test_GetSystemMetrics() 28 ret = GetSystemMetrics(66); in Test_GetSystemMetrics() 32 ret = GetSystemMetrics(SM_CXSCREEN); in Test_GetSystemMetrics() 36 ret = GetSystemMetrics(SM_CYSCREEN); in Test_GetSystemMetrics() 78 ret = GetSystemMetrics(SM_CXICON); in Test_GetSystemMetrics() 82 ret = GetSystemMetrics(SM_CYICON); in Test_GetSystemMetrics() 94 ret = GetSystemMetrics(SM_CYMENU); in Test_GetSystemMetrics() 123 ret = GetSystemMetrics(SM_DEBUG); in Test_GetSystemMetrics() [all …]
|
/reactos/modules/rostests/apitests/msgina/ |
H A D | ShellDimScreen.cpp | 91 …ok(rc.left == GetSystemMetrics(SM_XVIRTUALSCREEN), "Expected rc.left to be %u, was %lu\n", GetSyst… in Test_Dim() 92 …ok(rc.top == GetSystemMetrics(SM_YVIRTUALSCREEN), "Expected rc.top to be %u, was %lu\n", GetSystem… in Test_Dim() 93 …ok((rc.right - rc.left) == GetSystemMetrics(SM_CXVIRTUALSCREEN), "Expected rc.left to be %u, was %… in Test_Dim() 94 …ok((rc.bottom - rc.top) == GetSystemMetrics(SM_CYVIRTUALSCREEN), "Expected rc.top to be %u, was %l… in Test_Dim()
|
/reactos/win32ss/user/user32/windows/ |
H A D | nonclient.c | 68 Size->cx += GetSystemMetrics(SM_CXFRAME) - GetSystemMetrics(SM_CXDLGFRAME); in UserGetWindowBorders() 69 Size->cy += GetSystemMetrics(SM_CYFRAME) - GetSystemMetrics(SM_CYDLGFRAME); in UserGetWindowBorders() 71 Size->cx *= GetSystemMetrics(SM_CXBORDER); in UserGetWindowBorders() 72 Size->cy *= GetSystemMetrics(SM_CYBORDER); in UserGetWindowBorders() 99 lpRect->top -= GetSystemMetrics(SM_CYMENU); in RealAdjustWindowRectEx() 104 lpRect->top -= GetSystemMetrics(SM_CYSMCAPTION); in RealAdjustWindowRectEx() 106 lpRect->top -= GetSystemMetrics(SM_CYCAPTION); in RealAdjustWindowRectEx()
|
H A D | winpos.c | 62 MinMax.ptMinTrackSize.x = GetSystemMetrics(SM_CXMINTRACK); 63 MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); 70 MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK); 71 MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK); 100 if (MinMax.ptMaxSize.x == GetSystemMetrics(SM_CXSCREEN) + 2 * xinc && 101 MinMax.ptMaxSize.y == GetSystemMetrics(SM_CYSCREEN) + 2 * yinc)
|
H A D | mdi.c | 313 INT spacing = GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CYFRAME) - 1; in MDI_CalcDefaultChildPos() 697 hbCopy = CreateCompatibleBitmap(hDCSrc,GetSystemMetrics(SM_CXSIZE),GetSystemMetrics(SM_CYSIZE)); in CreateMDIMenuBitmap() 700 BitBlt(hDCDest, 0, 0, GetSystemMetrics(SM_CXSIZE), GetSystemMetrics(SM_CYSIZE), in CreateMDIMenuBitmap() 710 LineTo( hDCDest, GetSystemMetrics(SM_CXSIZE) - 1, GetSystemMetrics(SM_CYSIZE) - 1); in CreateMDIMenuBitmap() 753 if (has_icons) delta = GetSystemMetrics(SM_CYICONSPACING) + GetSystemMetrics(SM_CYICON); in MDICascade() 831 y = rect.bottom - 2 * GetSystemMetrics(SM_CYICONSPACING) - GetSystemMetrics(SM_CYICON); in MDITile() 927 cx = GetSystemMetrics(SM_CXSMICON); in MDI_AugmentFrameMenu() 1915 shift = GetSystemMetrics(SM_CYHSCROLL); in ScrollChildren() 1921 shift = GetSystemMetrics(SM_CXVSCROLL); in ScrollChildren() 2130 dx = GetSystemMetrics(SM_CXSIZEFRAME) + GetSystemMetrics(SM_CXSIZE); in CascadeWindows() [all …]
|
/reactos/dll/win32/uxtheme/ |
H A D | nonclient.c | 422 int IconHeight = GetSystemMetrics(SM_CYSMICON); in ThemeDrawCaption() 423 int IconWidth = GetSystemMetrics(SM_CXSMICON); in ThemeDrawCaption() 476 (GetSystemMetrics(SM_CXFRAME) - GetSystemMetrics(SM_CXDLGFRAME)) * in DrawClassicFrame() 477 GetSystemMetrics(SM_CXBORDER); in DrawClassicFrame() 479 (GetSystemMetrics(SM_CYFRAME) - GetSystemMetrics(SM_CYDLGFRAME)) * in DrawClassicFrame() 480 GetSystemMetrics(SM_CYBORDER); in DrawClassicFrame() 501 INT Width = GetSystemMetrics(SM_CXBORDER); in DrawClassicFrame() 502 INT Height = GetSystemMetrics(SM_CYBORDER); in DrawClassicFrame() 820 XSize = GetSystemMetrics(SM_CXSIZE) * GetSystemMetrics(SM_CXBORDER); in DefWndNCHitTest() 821 YSize = GetSystemMetrics(SM_CYSIZE) * GetSystemMetrics(SM_CYBORDER); in DefWndNCHitTest() [all …]
|
/reactos/base/shell/explorer/ |
H A D | traydeskbtn.cpp | 39 if (GetSystemMetrics(SM_TABLETPC)) in WidthOrHeight() 57 return max(2 * GetSystemMetrics(SM_CXBORDER) + GetSystemMetrics(SM_CXSMICON), in WidthOrHeight() 58 2 * GetSystemMetrics(SM_CYBORDER) + GetSystemMetrics(SM_CYSMICON)); in WidthOrHeight() 76 m_szIcon.cx = GetSystemMetrics(SM_CXSMICON); in DoCreate() 77 m_szIcon.cy = GetSystemMetrics(SM_CYSMICON); in DoCreate() 254 INT cxEdge = ::GetSystemMetrics(SM_CXEDGE), cyEdge = ::GetSystemMetrics(SM_CYEDGE); in PtInButton()
|
H A D | syspager.cpp | 806 SetButtonSize(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON)); in AddButton() 1005 if (cx == GetSystemMetrics(SM_CXSMICON) && cy == GetSystemMetrics(SM_CYSMICON)) in ResizeImagelist() 1008 …iml = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_COLOR32 |… in ResizeImagelist() 1028 SetButtonSize(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON)); in ResizeImagelist() 1251 …m_ImageList = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_C… in Initialize() 1256 SetButtonSize(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON)); in Initialize() 1271 tbm.cxPad = GetSystemMetrics(SM_CXSMICON) / 2; in RefreshToolbarMetrics() 1272 tbm.cyPad = GetSystemMetrics(SM_CYSMICON) / 2; in RefreshToolbarMetrics() 1409 size->cy -= size->cy % GetSystemMetrics(SM_CYSMICON); in GetSize() 1416 INT cyButton = GetSystemMetrics(SM_CYSMICON) + 2; in GetSize() [all …]
|
/reactos/win32ss/user/user32/controls/ |
H A D | icontitle.c | 96 SetRect( &rect, 0, 0, GetSystemMetrics(SM_CXICONSPACING) - in ICONTITLE_SetTitlePos() 97 GetSystemMetrics(SM_CXBORDER) * 2, in ICONTITLE_SetTitlePos() 98 GetSystemMetrics(SM_CYBORDER) * 2 ); in ICONTITLE_SetTitlePos() 106 cx = rect.right - rect.left + 4 * GetSystemMetrics(SM_CXBORDER); in ICONTITLE_SetTitlePos() 109 pt.x = (GetSystemMetrics(SM_CXICON) - cx) / 2; in ICONTITLE_SetTitlePos() 110 pt.y = GetSystemMetrics(SM_CYICON); in ICONTITLE_SetTitlePos()
|
H A D | scrollbar.c | 510 Rect->bottom += GetSystemMetrics(SM_CYHSCROLL); in IntScrollGetScrollBarRect() 529 Rect->left -= GetSystemMetrics(SM_CXVSCROLL); in IntScrollGetScrollBarRect() 534 Rect->right += GetSystemMetrics(SM_CXVSCROLL); in IntScrollGetScrollBarRect() 563 if (Pixels <= 2 * GetSystemMetrics(SM_CXVSCROLL) + SCROLL_MIN_RECT) in IntScrollGetScrollBarRect() 573 *ArrowSize = GetSystemMetrics(SM_CXVSCROLL); in IntScrollGetScrollBarRect() 580 else *ThumbSize = GetSystemMetrics(SM_CXVSCROLL); in IntScrollGetScrollBarRect() 680 Rect.left = max(Rect.left, Rect.right - GetSystemMetrics(SM_CXVSCROLL) - 1); in IntScrollDrawSizeGrip() 681 Rect.top = max(Rect.top, Rect.bottom - GetSystemMetrics(SM_CYHSCROLL) - 1); in IntScrollDrawSizeGrip() 1105 GetSystemMetrics(SM_CYHSCROLL) + 1, FALSE); in IntScrollCreateScrollBar() 1111 GetSystemMetrics(SM_CXVSCROLL) + 1, in IntScrollCreateScrollBar() [all …]
|
/reactos/modules/rosapps/applications/explorer-old/taskbar/ |
H A D | desktopbar.h | 33 #define DESKTOPBARBAR_HEIGHT (GetSystemMetrics(SM_CYSIZE) + 5 * GetSystemMetrics(SM_CYEDGE)) 34 #define REBARBAND_HEIGHT (GetSystemMetrics(SM_CYSIZE) + 2 * GetSystemMetrics(SM_CYEDGE))
|
/reactos/dll/cpl/sysdm/ |
H A D | licence.c | 29 GetSystemMetrics(SM_CXICON), in OnInitDialog() 30 GetSystemMetrics(SM_CYICON), in OnInitDialog() 35 GetSystemMetrics(SM_CXSMICON), in OnInitDialog() 36 GetSystemMetrics(SM_CYSMICON), in OnInitDialog()
|
/reactos/dll/win32/shell32/dialogs/ |
H A D | folder_options.cpp | 88 INT cxSmallIcon = GetSystemMetrics(SM_CXSMICON); in CreateCheckImage() 89 INT cySmallIcon = GetSystemMetrics(SM_CYSMICON); in CreateCheckImage() 116 INT cxSmallIcon = GetSystemMetrics(SM_CXSMICON); in CreateCheckMask() 117 INT cySmallIcon = GetSystemMetrics(SM_CYSMICON); in CreateCheckMask() 140 INT cxSmallIcon = GetSystemMetrics(SM_CXSMICON); in CreateRadioImage() 141 INT cySmallIcon = GetSystemMetrics(SM_CYSMICON); in CreateRadioImage() 168 INT cxSmallIcon = GetSystemMetrics(SM_CXSMICON); in CreateRadioMask() 169 INT cySmallIcon = GetSystemMetrics(SM_CYSMICON); in CreateRadioMask()
|
/reactos/modules/rostests/winetests/user32/ |
H A D | sysparams.c | 1682 eq( GetSystemMetrics( SM_CXMINSPACING ) - GetSystemMetrics( SM_CXMINIMIZED ), in test_SPI_SETMINIMIZEDMETRICS() 1684 eq( GetSystemMetrics( SM_CYMINSPACING ) - GetSystemMetrics( SM_CYMINIMIZED ), in test_SPI_SETMINIMIZEDMETRICS() 1724 eq( GetSystemMetrics( SM_CXMINSPACING ) - GetSystemMetrics( SM_CXMINIMIZED ), in test_SPI_SETMINIMIZEDMETRICS() 1726 eq( GetSystemMetrics( SM_CYMINSPACING ) - GetSystemMetrics( SM_CYMINIMIZED ), in test_SPI_SETMINIMIZEDMETRICS() 2651 int act = GetSystemMetrics( (i));\ 2659 int act = GetSystemMetrics( (i));\ 2668 int act = GetSystemMetrics( (i));\ 2782 GetSystemMetrics( SM_CXMAXIMIZED) - 2 * GetSystemMetrics( SM_CXFRAME)); in test_GetSystemMetrics() 2784 GetSystemMetrics( SM_CYMAXIMIZED) - GetSystemMetrics( SM_CYMIN)); in test_GetSystemMetrics() 2796 GetSystemMetrics( SM_CYSIZE) + 4 + 4 * avcwCaption + 2 * GetSystemMetrics( SM_CXFRAME)); in test_GetSystemMetrics() [all …]
|
/reactos/dll/cpl/console/ |
H A D | layout.c | 64 pData->siVirtScr.cx = GetSystemMetrics(SM_CXVIRTUALSCREEN); in WinPrev_OnDisplayChange() 65 pData->siVirtScr.cy = GetSystemMetrics(SM_CYVIRTUALSCREEN); in WinPrev_OnDisplayChange() 163 siFrame.cx = GetSystemMetrics(SM_CXFRAME); in WinPrev_OnDraw() 169 siFrame.cy = GetSystemMetrics(SM_CYFRAME); in WinPrev_OnDraw() 177 siButton.cx = GetSystemMetrics(SM_CXSIZE); in WinPrev_OnDraw() 181 siButton.cy = GetSystemMetrics(SM_CYSIZE); in WinPrev_OnDraw() 190 siScroll.cx = GetSystemMetrics(SM_CXVSCROLL); in WinPrev_OnDraw() 194 siScroll.cy = GetSystemMetrics(SM_CYHSCROLL); in WinPrev_OnDraw() 539 xVirtScr = GetSystemMetrics(SM_XVIRTUALSCREEN); in LayoutProc() 543 cxFrame = GetSystemMetrics(SM_CXFRAME); in LayoutProc() [all …]
|
/reactos/modules/rostests/winetests/gdi32/ |
H A D | clipping.c | 359 ok(ret == SIMPLEREGION || (ret == COMPLEXREGION && GetSystemMetrics(SM_CMONITORS) > 1), in test_GetClipRgn() 468 screen_width = GetSystemMetrics(SM_CXVIRTUALSCREEN); in test_window_dc_clipping() 469 if(!screen_width) screen_width = GetSystemMetrics(SM_CXSCREEN); in test_window_dc_clipping() 470 screen_height = GetSystemMetrics(SM_CYVIRTUALSCREEN); in test_window_dc_clipping() 471 if(!screen_height) screen_height = GetSystemMetrics(SM_CYSCREEN); in test_window_dc_clipping() 472 SetRect(&virtual_rect, GetSystemMetrics(SM_XVIRTUALSCREEN), GetSystemMetrics(SM_YVIRTUALSCREEN), in test_window_dc_clipping() 473 …GetSystemMetrics(SM_XVIRTUALSCREEN) + screen_width, GetSystemMetrics(SM_YVIRTUALSCREEN) + screen_h… in test_window_dc_clipping() 493 ok(ret == SIMPLEREGION || (ret == COMPLEXREGION && GetSystemMetrics(SM_CMONITORS) > 1), in test_window_dc_clipping() 524 ok(ret == SIMPLEREGION || (ret == COMPLEXREGION && GetSystemMetrics(SM_CMONITORS) > 1), in test_window_dc_clipping()
|
/reactos/dll/cpl/input/ |
H A D | settings_page.c | 30 INT cxIcon = GetSystemMetrics(SM_CXSMICON); in CreateLayoutIcon() 31 INT cyIcon = GetSystemMetrics(SM_CYSMICON); in CreateLayoutIcon() 165 GetSystemMetrics(SM_CXSMICON), in EnumResNameProc() 166 GetSystemMetrics(SM_CYSMICON), in EnumResNameProc() 341 GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), in UpdateInputListView() 352 GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), in UpdateInputListView() 399 hLayoutImageList = ImageList_Create(GetSystemMetrics(SM_CXSMICON), in OnInitSettingsPage() 400 GetSystemMetrics(SM_CYSMICON), in OnInitSettingsPage()
|
/reactos/base/shell/progman/ |
H A D | group.c | 140 GetSystemMetrics(SM_CXICON), in GROUP_GroupWndProc() 141 GetSystemMetrics(SM_CYICON), in GROUP_GroupWndProc() 146 GetSystemMetrics(SM_CXSMICON), in GROUP_GroupWndProc() 147 GetSystemMetrics(SM_CYSMICON), in GROUP_GroupWndProc() 155 GetSystemMetrics(SM_CXICON), in GROUP_GroupWndProc() 156 GetSystemMetrics(SM_CYICON), in GROUP_GroupWndProc() 161 GetSystemMetrics(SM_CXSMICON), in GROUP_GroupWndProc() 162 GetSystemMetrics(SM_CYSMICON), in GROUP_GroupWndProc() 193 …group->hListLarge = ImageList_Create(GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON), ILC… in GROUP_GroupWndProc()
|
/reactos/dll/shellext/netplwiz/ |
H A D | SHDisconnectNetDrives.c | 59 GetSystemMetrics(SM_CXSMICON), in EnumerateConnectedDrives() 60 GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR); in EnumerateConnectedDrives() 162 …hIconSm = (HICON)CopyImage(hIcon, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_C… in DisconnectDlgProc()
|
/reactos/sdk/lib/scrnsave/ |
H A D | scrnsave.c | 212 rc.left = GetSystemMetrics(SM_XVIRTUALSCREEN); in LaunchScreenSaver() 213 rc.top = GetSystemMetrics(SM_YVIRTUALSCREEN); in LaunchScreenSaver() 215 rc.right = GetSystemMetrics(SM_CXVIRTUALSCREEN); in LaunchScreenSaver() 216 rc.bottom = GetSystemMetrics(SM_CYVIRTUALSCREEN); in LaunchScreenSaver()
|
/reactos/win32ss/user/winsrv/consrv/frontends/gui/ |
H A D | conwnd.c | 144 GetSystemMetrics(SM_CXICON), in RegisterConWndClass() 145 GetSystemMetrics(SM_CYICON), in RegisterConWndClass() 150 GetSystemMetrics(SM_CXSMICON), in RegisterConWndClass() 436 2 * (GetSystemMetrics(SM_CXFRAME) + GetSystemMetrics(SM_CXEDGE)); in ResizeConWnd() 438 … 2 * (GetSystemMetrics(SM_CYFRAME) + GetSystemMetrics(SM_CYEDGE)) + GetSystemMetrics(SM_CYCAPTION); in ResizeConWnd() 450 Width += GetSystemMetrics(SM_CXVSCROLL); in ResizeConWnd() 464 Height += GetSystemMetrics(SM_CYHSCROLL); in ResizeConWnd() 2113 …windx = CONGUI_MIN_WIDTH * WidthUnit + 2 * (GetSystemMetrics(SM_CXFRAME) + GetSystemMetrics(SM_C… in OnGetMinMaxInfo() 2114 …ONGUI_MIN_HEIGHT * HeightUnit + 2 * (GetSystemMetrics(SM_CYFRAME) + GetSystemMetrics(SM_CYEDGE)) +… in OnGetMinMaxInfo() 2119 …ctiveBuffer->ScreenBufferSize.X) * WidthUnit + 2 * (GetSystemMetrics(SM_CXFRAME) + GetSystemMetri… in OnGetMinMaxInfo() [all …]
|
/reactos/dll/win32/shell32/shelldesktop/ |
H A D | CDesktopBrowser.cpp | 175 UINT cMonitors = GetSystemMetrics(SM_CMONITORS); in _Resize() 183 GetSystemMetrics(SM_XVIRTUALSCREEN), in _Resize() 184 GetSystemMetrics(SM_YVIRTUALSCREEN), in _Resize() 185 GetSystemMetrics(SM_XVIRTUALSCREEN) + GetSystemMetrics(SM_CXVIRTUALSCREEN), in _Resize() 186 GetSystemMetrics(SM_YVIRTUALSCREEN) + GetSystemMetrics(SM_CYVIRTUALSCREEN)); in _Resize() 613 if (GetSystemMetrics(SM_REMOTESESSION) || GetSystemMetrics(SM_REMOTECONTROL)) in SHIsTempDisplayMode()
|
/reactos/base/applications/regedit/ |
H A D | main.c | 57 IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), in InitInstance() 58 GetSystemMetrics(SM_CYSMICON), LR_SHARED); in InitInstance() 75 IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), in InitInstance() 76 GetSystemMetrics(SM_CYSMICON), LR_SHARED); in InitInstance()
|
/reactos/modules/rostests/tests/enhmetafile/ |
H A D | enhmetafile.c | 55 EnhMetafileSize.cx + (2 * GetSystemMetrics(SM_CXSIZEFRAME)) + 2, in WinMain() 56 … EnhMetafileSize.cy + (2 * GetSystemMetrics(SM_CYSIZEFRAME)) + GetSystemMetrics(SM_CYCAPTION) + 2, in WinMain()
|
/reactos/base/applications/dxdiag/ |
H A D | ddtest.c | 95 (GetSystemMetrics(SM_CXSCREEN) - DD_TEST_WIDTH)/2, in DDTests() 96 (GetSystemMetrics(SM_CYSCREEN) - DD_TEST_HEIGHT)/2, in DDTests() 177 rct.left = (GetSystemMetrics(SM_CXSCREEN) - DD_TEST_WIDTH)/2; in DDRedrawFrame() 178 rct.right = (GetSystemMetrics(SM_CXSCREEN) - DD_TEST_WIDTH)/2 + DD_TEST_WIDTH; in DDRedrawFrame() 179 rct.top = (GetSystemMetrics(SM_CYSCREEN) - DD_TEST_HEIGHT)/2; in DDRedrawFrame() 180 rct.bottom = (GetSystemMetrics(SM_CYSCREEN) - DD_TEST_HEIGHT)/2 + DD_TEST_HEIGHT; in DDRedrawFrame()
|