Changeset 1849 for trunk/src


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

map rect, WM_ERASEBKGND and other fixes

Location:
trunk/src/user32
Files:
10 edited

Legend:

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

    r1710 r1849  
    1 /* $Id: dc.cpp,v 1.22 1999-11-12 11:38:45 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.23 1999-11-26 17:06:06 cbratschi Exp $ */
    22
    33/*
     
    876876   {
    877877#if 1
    878         // Don't do this for now (causes lots of desktop repaints in WordPad)
     878        // Don't do this for now (causes lots of desktop repaints in WordPad)
    879879         O32_SetLastError (ERROR_INVALID_PARAMETER);
    880880         return FALSE;
     
    12731273    }
    12741274    dprintf(("ScrollWindow %x %d %d\n", hwnd, dx, dy));
    1275     MapWin32ToOS2Rectl(window->getClientRect(), (PRECTLOS2)&clientRect);
     1275    MapWin32ToOS2Rectl(window->getOS2WindowHandle(),window->getClientRect(), (PRECTLOS2)&clientRect);
    12761276    //Rectangle could be relative to parent window, so fix this
    12771277    if(clientRect.yBottom != 0) {
     
    12841284    }
    12851285    if(pScroll) {
    1286          MapWin32ToOS2Rectl((RECT *)pScroll, (PRECTLOS2)&scrollRect);
     1286         MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pScroll, (PRECTLOS2)&scrollRect);
    12871287         pScrollRect = &scrollRect;
    12881288
     
    12971297
    12981298    if(pClip) {
    1299          MapWin32ToOS2Rectl((RECT *)pClip, (PRECTLOS2)&clipRect);
     1299         MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pClip, (PRECTLOS2)&clipRect);
    13001300         pClipRect = &clipRect;
    13011301
     
    13411341    if (scrollFlag & SW_SCROLLCHILDREN_W)  scrollFlags |= SW_SCROLLCHILDREN;
    13421342
    1343     if(pScroll) MapWin32ToOS2Rectl((RECT *)pScroll, (PRECTLOS2)&scrollRect);
    1344     if(pClip)   MapWin32ToOS2Rectl((RECT *)pClip, (PRECTLOS2)&clipRect);
     1343    if(pScroll) MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pScroll, (PRECTLOS2)&scrollRect);
     1344    if(pClip)   MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pClip, (PRECTLOS2)&clipRect);
    13451345
    13461346    RECTL rectlUpdate;
  • trunk/src/user32/edit.cpp

    r1828 r1849  
    1 /* $Id: edit.cpp,v 1.17 1999-11-24 18:21:36 cbratschi Exp $ */
     1/* $Id: edit.cpp,v 1.18 1999-11-26 17:06:06 cbratschi Exp $ */
    22/*
    33 *      Edit control
     
    2020
    2121/* CB: todo
     22  - WM_MOUSEMOVE: vert lines invalidate bug
    2223  - EN_UPDATE: send before update
    2324  - EN_CHANGE: send after update -> WM_PAINT isn't the right place
    2425  - EN_HSCROLL/EN_VSCROLL: send before update
    25   - still problems with caret
    2626  - WS_BORDER -> bug in Win32BaseWindow::SetWindowLong
    27   - clipping bug(s)
    2827  - many messages, styles, notifications
    2928*/
     
    229228static LRESULT  EDIT_WM_LButtonDown(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y);
    230229static LRESULT  EDIT_WM_LButtonUp(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y);
     230static LRESULT  EDIT_WM_CaptureChanged(HWND hwnd,EDITSTATE *es);
    231231static LRESULT  EDIT_WM_MouseMove(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y);
    232232static LRESULT  EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTA cs);
     
    671671                //DPRINTF_EDIT_MSG32("WM_LBUTTONUP");
    672672                result = EDIT_WM_LButtonUp(hwnd, es, (DWORD)wParam, SLOWORD(lParam), SHIWORD(lParam));
     673                break;
     674
     675        case WM_CAPTURECHANGED:
     676                result = EDIT_WM_CaptureChanged(hwnd,es);
    673677                break;
    674678
     
    10141018{
    10151019        INT line_index =  EDIT_EM_LineIndex(hwnd, es, line);
    1016 
     1020//CB: fix
    10171021        if (es->style & ES_MULTILINE)
    10181022                rc->top = es->format_rect.top + (line - es->y_offset) * es->line_height;
     
    10891093        if (IntersectRect(&rc, &line_rect, &es->format_rect))
    10901094        {
    1091           if (es->flags & EF_FOCUSED) HideCaret(hwnd);
     1095          HideCaret(hwnd);
    10921096          InvalidateRect(hwnd, &rc, FALSE);
    1093           if (es->flags & EF_FOCUSED) ShowCaret(hwnd);
     1097          ShowCaret(hwnd);
    10941098        }
    10951099}
     
    11321136        GetClientRect(hwnd, &rc1);
    11331137        IntersectRect(&rcWnd, &rc1, &es->format_rect);
    1134         if (es->flags & EF_FOCUSED) HideCaret(hwnd);
     1138        HideCaret(hwnd);
    11351139        if (sl == el) {
    11361140                EDIT_GetLineRect(hwnd, es, sl, sc, ec, &rcLine);
     
    11561160                        InvalidateRect(hwnd, &rcUpdate, FALSE);
    11571161        }
    1158         if (es->flags & EF_FOCUSED) ShowCaret(hwnd);
     1162        ShowCaret(hwnd);
    11591163}
    11601164
     
    20872091                GetClientRect(hwnd, &rc1);
    20882092                IntersectRect(&rc, &rc1, &es->format_rect);
    2089                 rc.top--; //CB: top line not moved/refreshed
     2093
    20902094                ScrollWindowEx(hwnd, -dx, dy,
    20912095                                NULL, &rc, (HRGN)NULL, NULL, SW_INVALIDATE);
     
    28512855
    28522856        GetClientRect(hwnd, &rc);
    2853         IntersectClipRect(dc, rc.left, rc.top, rc.right, rc.bottom);
     2857        IntersectClipRect(dc, rc.left, rc.top, rc.right, rc.bottom); CB:
    28542858        GetClipBox(dc, &rc);
    28552859        /*
     
    28762880    return 0;
    28772881
    2878   //SvL: Bugfix: +1
    28792882  len = min(count, lstrlenA(es->text)+1); // determine length
    28802883  lstrcpynA(text, es->text, len);       // copy as much as possible
     
    32623265static LRESULT EDIT_WM_LButtonUp(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y)
    32633266{
    3264         if (es->bCaptureState && GetCapture() == hwnd) {
    3265                 KillTimer(hwnd, 0);
    3266                 ReleaseCapture();
    3267         }
    3268         es->bCaptureState = FALSE;
    3269 
    3270         return 0;
    3271 }
    3272 
     3267  if (es->bCaptureState)
     3268  {
     3269    KillTimer(hwnd,0);
     3270    ReleaseCapture();
     3271  }
     3272  es->bCaptureState = FALSE;
     3273
     3274  return 0;
     3275}
     3276
     3277static LRESULT EDIT_WM_CaptureChanged(HWND hwnd,EDITSTATE *es)
     3278{
     3279  if (es->bCaptureState) KillTimer(hwnd,0);
     3280  es->bCaptureState = FALSE;
     3281
     3282  return 0;
     3283}
    32733284
    32743285/*********************************************************************
     
    32833294        INT prex, prey;
    32843295
    3285         if (GetCapture() != hwnd)
    3286                 return 1; //SvL: Bugfix
     3296        if (!es->bCaptureState) return 0;
    32873297
    32883298        /*
     
    34013411  if (es->flags & EF_UPDATE) EDIT_NOTIFY_PARENT(hwnd, EN_UPDATE);
    34023412
    3403   if (es->flags & EF_FOCUSED) HideCaret(hwnd);
     3413  HideCaret(hwnd);
    34043414
    34053415  if (eraseBkGnd)
     
    34733483    EDIT_SetCaretPos(hwnd, es, es->selection_end,es->flags & EF_AFTER_WRAP);
    34743484
    3475   if (es->flags & EF_FOCUSED) ShowCaret(hwnd);
     3485  ShowCaret(hwnd);
    34763486
    34773487  //CB: replace
     
    34903500
    34913501  //CB: original controls redraws many times, cache drawing
    3492   if (es->flags & EF_FOCUSED) HideCaret(hwnd);
     3502  HideCaret(hwnd);
    34933503  GetClientRect(hwnd,&rect);
    34943504  hdc = GetDC(hwnd);
     
    35033513  DeleteDC(hdcCompatible);
    35043514  ReleaseDC(hwnd,hdc);
    3505   if (es->flags & EF_FOCUSED) ShowCaret(hwnd);
     3515  ShowCaret(hwnd);
    35063516}
    35073517
  • trunk/src/user32/oslibgdi.cpp

    r1297 r1849  
    1 /* $Id: oslibgdi.cpp,v 1.3 1999-10-14 18:27:57 sandervl Exp $ */
     1/* $Id: oslibgdi.cpp,v 1.4 1999-11-26 17:06:07 cbratschi Exp $ */
    22/*
    33 * Window GDI wrapper functions for OS/2
     
    8585    }
    8686
    87     if(hwndParent != HWND_DESKTOP) 
     87    if(hwndParent != HWND_DESKTOP)
    8888    {
    89         window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndParent);
    90         if(window == NULL)
    91                 return FALSE;
    92         height = window->getWindowHeight();
     89        window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndParent);
     90        if(window == NULL)
     91                return FALSE;
     92        height = window->getWindowHeight();
    9393    }
    9494    else height = OSLibQueryScreenHeight();
     
    106106//
    107107// Parameters:
     108//   hwnd:       OS/2 window handle
    108109//   rectOS2:    OS/2 child window RECTL
    109110//   rectWin32:  Win32 Child window RECT   (IN)
     
    113114//   FALSE:     Failures
    114115//******************************************************************************
    115 BOOL MapOS2ToWin32Rectl(PRECTLOS2 rectOS2, PRECT rectWin32)
    116 {
    117  ULONG length = rectOS2->yTop - rectOS2->yBottom;
    118 
    119    rectWin32->bottom = length - rectOS2->yBottom;
    120    rectWin32->top    = length - rectOS2->yTop;
     116BOOL MapOS2ToWin32Rectl(HWND hwnd,PRECTLOS2 rectOS2, PRECT rectWin32)
     117{
     118   RECTL rect;
     119
     120   if (!WinQueryWindowRect(hwnd,&rect)) return FALSE;
     121
     122   rectWin32->bottom = rect.yTop-rectOS2->yBottom;
     123   rectWin32->top    = rect.yTop-rectOS2->yTop;
    121124   rectWin32->left   = rectOS2->xLeft;
    122125   rectWin32->right  = rectOS2->xRight;
     126
    123127   return TRUE;
    124128}
     
    128132//
    129133// Parameters:
     134//   hwnd:       OS/2 window handle
    130135//   rectWin32:  Win32 Child window RECT   (IN)
    131136//   rectOS2:    OS/2  Child window RECTL  (OUT)
     
    134139//   FALSE:      Failures
    135140//******************************************************************************
    136 BOOL MapWin32ToOS2Rectl(PRECT rectWin32, PRECTLOS2 rectOS2)
    137 {
    138  ULONG length = rectWin32->bottom - rectWin32->top;
    139 
    140     rectOS2->yBottom = length - rectWin32->bottom;
    141     rectOS2->yTop    = length - rectWin32->top;
     141BOOL MapWin32ToOS2Rectl(HWND hwnd,PRECT rectWin32, PRECTLOS2 rectOS2)
     142{
     143    RECTL rect;
     144
     145    if (!WinQueryWindowRect(hwnd,&rect)) return FALSE;
     146
     147    rectOS2->yBottom = rect.yTop-rectWin32->bottom;
     148    rectOS2->yTop    = rect.yTop-rectWin32->top;
    142149    rectOS2->xLeft   = rectWin32->left;
    143150    rectOS2->xRight  = rectWin32->right;
     151
    144152    return TRUE;
     153}
     154//******************************************************************************
     155//******************************************************************************
     156BOOL MapOS2ToWin32WindowRect(PRECTLOS2 rectOS2,PRECT rectWin32)
     157{
     158  rectWin32->bottom = rectOS2->yTop;
     159  rectWin32->top    = rectOS2->yBottom;
     160  rectWin32->left   = rectOS2->xLeft;
     161  rectWin32->right  = rectOS2->xRight;
     162
     163  return TRUE;
     164}
     165//******************************************************************************
     166//******************************************************************************
     167BOOL MapWin32ToOS2WindowRect(PRECT rectWin32,PRECTLOS2 rectOS2)
     168{
     169  rectOS2->yBottom = rectWin32->top;
     170  rectOS2->yTop    = rectWin32->bottom;
     171  rectOS2->xLeft   = rectWin32->left;
     172  rectOS2->xRight  = rectWin32->right;
     173
     174  return TRUE;
    145175}
    146176//******************************************************************************
     
    155185        return 0;
    156186    }
    157     MapOS2ToWin32Rectl((RECTLOS2 *)&rectl, rectWin32);
     187    MapOS2ToWin32Rectl(hwnd,(RECTLOS2 *)&rectl, rectWin32);
    158188    return WinBeginPaint(hwnd, NULLHANDLE, &rectl);
    159189}
     
    169199{
    170200  if(hwnd == OSLIB_HWND_DESKTOP)
    171         hwnd = HWND_DESKTOP;
     201        hwnd = HWND_DESKTOP;
    172202
    173203  return (HDC)WinGetPS(hwnd);
     
    186216
    187217    if(pRect) {
    188         MapWin32ToOS2Rectl(pRect, &rectl);
     218        MapWin32ToOS2Rectl(hwnd,pRect, &rectl);
    189219        return WinInvalidateRect(hwnd, (PRECTL)&rectl, fIncludeChildren);
    190220    }
     
    201231  rc = WinQueryUpdateRect(hwnd, (PRECTL)&rectl);
    202232  if(rc) {
    203         MapOS2ToWin32Rectl(&rectl, pRect);
     233        MapOS2ToWin32Rectl(hwnd,&rectl, pRect);
    204234  }
    205235  else  memset(pRect, 0, sizeof(RECT));
  • trunk/src/user32/oslibgdi.h

    r949 r1849  
    1 /* $Id: oslibgdi.h,v 1.1 1999-09-15 23:18:53 sandervl Exp $ */
     1/* $Id: oslibgdi.h,v 1.2 1999-11-26 17:06:07 cbratschi Exp $ */
    22/*
    33 * Window GDI wrapper functions for OS/2
     
    5555BOOL  MapOS2ToWin32Rectl(HWND hwndParent, HWND hwndChild, PRECTLOS2 rectOS2, PRECT rectWin32);
    5656
    57 BOOL  MapOS2ToWin32Rectl(PRECTLOS2 rectOS2, PRECT rectWin32);
    58 BOOL  MapWin32ToOS2Rectl(PRECT rectWin32, PRECTLOS2 rectOS2);
     57BOOL  MapOS2ToWin32Rectl(HWND hwnd,PRECTLOS2 rectOS2, PRECT rectWin32);
     58BOOL  MapWin32ToOS2Rectl(HWND hwnd,PRECT rectWin32, PRECTLOS2 rectOS2);
     59
     60BOOL  MapOS2ToWin32WindowRect(PRECTLOS2 rectOS2,PRECT rectWin32);
     61BOOL  MapWin32ToOS2WindowRect(PRECT rectWin32,PRECTLOS2 rectOS2);
    5962
    6063#endif //__OSLIBGDI_H__
  • trunk/src/user32/oslibwin.cpp

    r1839 r1849  
    1 /* $Id: oslibwin.cpp,v 1.48 1999-11-25 19:22:02 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.49 1999-11-26 17:06:08 cbratschi Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    264264ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend)
    265265{
    266   return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam, 
     266  return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam,
    267267                         (fSend) ? BMSG_SEND : BMSG_POST);
    268268}
     
    403403                MapOS2ToWin32Rectl(OSLIB_HWND_DESKTOP, hwnd, &rectl, pRect);
    404404        }
    405         else    MapOS2ToWin32Rectl(&rectl, pRect);
     405        else    MapOS2ToWin32WindowRect(&rectl, pRect);
    406406  }
    407407  else  memset(pRect, 0, sizeof(RECT));
  • trunk/src/user32/pmwindow.cpp

    r1831 r1849  
    1 /* $Id: pmwindow.cpp,v 1.56 1999-11-24 19:32:22 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.57 1999-11-26 17:06:08 cbratschi Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    178178   ScreenWidth  = desktopRectl.xRight;
    179179   ScreenHeight = desktopRectl.yTop;
    180    
    181    
     180
     181
    182182   HDC   hdc;              /* Device-context handle                */
    183183   /* context data structure */
    184184   DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL,
    185185                       NULL, NULL, NULL};
    186  
     186
    187187   /* create memory device context */
    188188   hdc = DevOpenDC(hab, OD_MEMORY, "*", 5L, (PDEVOPENDATA)&dop, NULLHANDLE);
     
    213213  }
    214214  if(msg == WIN32APP_POSTMSG && (ULONG)mp1 == WIN32PM_MAGIC) {
    215         //win32 app user message     
    216         win32wnd->PostMessage((POSTMSG_PACKET *)mp2);
     215        //win32 app user message
     216        win32wnd->PostMessage((POSTMSG_PACKET *)mp2);
    217217        return (MRESULT)0;
    218218  }
     
    869869    {
    870870        dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle()));
     871        //CB: handled in WM_PAINT too, don't do it twice!
     872
    871873        if (WinQueryUpdateRect (hwnd, NULL) && !win32wnd->isSupressErase()) {
    872874            BOOL erased = sendEraseBkgnd (win32wnd);
    873875            win32wnd->setEraseBkgnd (!erased, !erased);
    874876        }
     877
    875878        break;
    876879    }
    877880
    878881    case WM_PAINT:
     882    {
    879883        dprintf(("OS2: WM_PAINT %x", hwnd));
    880884
     
    885889            }
    886890        }
     891
    887892        win32wnd->setSupressErase (FALSE);
    888893
    889         if(win32wnd->MsgPaint(0, 0)) {
    890                 goto RunDefWndProc;
    891         }
    892         //Apparently there are apps that return 0, but don't do anything during WM_PAINT
     894        win32wnd->MsgPaint(0, 0);
     895
     896        //validate the update region, WM_PAINT has no return value
    893897        goto RunDefWndProc;
     898    }
    894899
    895900    case WM_HITTEST:
  • trunk/src/user32/syscolor.cpp

    r1790 r1849  
    1 /* $Id: syscolor.cpp,v 1.11 1999-11-21 12:32:59 achimha Exp $ */
     1/* $Id: syscolor.cpp,v 1.12 1999-11-26 17:06:08 cbratschi Exp $ */
    22
    33/*
     
    245245
    246246}
    247 //******************************************************************************
    248 //******************************************************************************
    249247/***********************************************************************
    250248 * This function is new to the Wine lib -- it does not exist in
     
    263261    else return 0;
    264262}
     263//******************************************************************************
     264//******************************************************************************
     265INT SYSCOLOR_GetLastColor(VOID)
     266{
     267  return NUM_SYS_COLORS-1;
     268}
     269//******************************************************************************
     270//******************************************************************************
     271INT SYSCOLOR_GetNumColors(VOID)
     272{
     273  return NUM_SYS_COLORS;
     274}
  • trunk/src/user32/syscolor.h

    r1378 r1849  
    1 /* $Id: syscolor.h,v 1.6 1999-10-20 16:27:01 cbratschi Exp $ */
     1/* $Id: syscolor.h,v 1.7 1999-11-26 17:06:08 cbratschi Exp $ */
    22
    33/*
     
    1212#define __WINE_SYSCOLOR_H
    1313
    14 //GetSysColor extra colors
    15 #define COLOR_3DDKSHADOW        21
    16 #define COLOR_3DLIGHT           22
    17 #define COLOR_INFOTEXT          23
    18 #define COLOR_INFOBK            24
    19 /* win98 colors */
    20 #define COLOR_ALTERNATEBTNFACE         25  /* undocumented, constant's name unknown */
    21 #define COLOR_HOTLIGHT                 26
    22 #define COLOR_GRADIENTACTIVECAPTION    27
    23 #define COLOR_GRADIENTINACTIVECAPTION  28
    24 
    25 #define COLOR_DESKTOP           COLOR_BACKGROUND
    26 #define COLOR_3DFACE            COLOR_BTNFACE
    27 #define COLOR_3DSHADOW          COLOR_BTNSHADOW
    28 #define COLOR_3DHIGHLIGHT       COLOR_BTNHIGHLIGHT
    29 #define COLOR_3DHILIGHT         COLOR_BTNHIGHLIGHT
    30 #define COLOR_BTNHILIGHT        COLOR_BTNHIGHLIGHT
    31 
    32 
    3314BOOL   WIN32API OS2UpdateWindow(HWND hwnd);
    3415HBRUSH WIN32API OS2GetSysColorBrush(int nIndex);
     
    3718extern void SYSCOLOR_Save(void);
    3819
     20extern INT SYSCOLOR_GetLastColor(VOID);
     21extern INT SYSCOLOR_GetNumColors(VOID);
     22
    3923#endif  /* __WINE_SYSCOLOR_H */
  • 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:
  • trunk/src/user32/win32wbase.cpp

    r1845 r1849  
    1 /* $Id: win32wbase.cpp,v 1.96 1999-11-26 00:05:49 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.97 1999-11-26 17:06:09 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16481648        rc = GetClipBox( (HDC)wParam, &rect );
    16491649        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    1650             FillRect( (HDC)wParam, &rect, windowClass->getBackgroundBrush());
     1650        {
     1651          HBRUSH hBrush = windowClass->getBackgroundBrush();
     1652
     1653          if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) hBrush = GetSysColorBrush(hBrush-1);
     1654
     1655          FillRect( (HDC)wParam, &rect, hBrush);
     1656        }
    16511657
    16521658        return 1;
Note: See TracChangeset for help on using the changeset viewer.