Ignore:
Timestamp:
Nov 26, 1999, 6:06:09 PM (26 years ago)
Author:
cbratschi
Message:

map rect, WM_ERASEBKGND and other fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/user32.cpp

    r1818 r1849  
    1 /* $Id: user32.cpp,v 1.55 1999-11-23 19:34:19 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.56 1999-11-26 17:06:08 cbratschi Exp $ */
    22
    33/*
     
    398398  {
    399399    return LoadCursorA(NULL,lpFileName);
    400   } 
     400  }
    401401  else
    402402  {
     
    682682
    683683   switch(nIndex) {
     684    case SM_CXSCREEN:
     685        rc = ScreenWidth;
     686        break;
     687
     688    case SM_CYSCREEN:
     689        rc = ScreenHeight;
     690        break;
     691
     692    case SM_CXVSCROLL:
     693        rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CXVSCROLL);
     694        break;
     695
     696    case SM_CYHSCROLL:
     697        rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYHSCROLL);
     698        break;
     699
     700    case SM_CYCAPTION:
     701        rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYTITLEBAR);
     702        break;
     703
     704    case SM_CXBORDER:
     705        rc = 1;
     706        break;
     707
     708    case SM_CYBORDER:
     709        rc = 1;
     710        break;
     711
     712//CB: todo: add missing metrics
     713
    684714    case SM_CXICONSPACING: //TODO: size of grid cell for large icons
    685715        rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CXICON);
     
    698728        rc = FALSE;
    699729        break;
    700     case SM_CXEDGE: //size of 3D window edge (not supported)
     730    case SM_CXEDGE: //size of 3D window edge
    701731        rc = 1;
    702732        break;
     
    789819        rc = 0;
    790820        break;
    791     case SM_CXSCREEN:
    792 
    793         return ScreenWidth;
    794     case SM_CYSCREEN:
    795         return ScreenHeight;
    796821
    797822    case SM_CXVIRTUALSCREEN:
Note: See TracChangeset for help on using the changeset viewer.