Ignore:
Timestamp:
Jan 12, 2000, 6:37:29 PM (26 years ago)
Author:
cbratschi
Message:

fixed WM_CALCVALIDRECTS, added region for WM_NCPAINT

File:
1 edited

Legend:

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

    r2418 r2421  
    1 /* $Id: win32wbase.cpp,v 1.36 2000-01-12 15:14:16 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.37 2000-01-12 17:37:29 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    10341034    RECT client = rectClient;
    10351035
    1036 //CB: bug in dc.cpp!!!
    1037     if ((rect.left == rect.right) || (rect.bottom == rect.top)) return 0;
    10381036    mapWin32Rect(getParent() ? getParent()->getOS2WindowHandle():OSLIB_HWND_DESKTOP,OS2HwndFrame,&client);
    10391037    if ((rect.left >= client.left) && (rect.left < client.right) &&
     
    10421040        (rect.bottom >= client.top) && (rect.bottom < client.bottom))
    10431041      return 0;
     1042
    10441043    hrgn = CreateRectRgnIndirect(&rect);
    10451044    if (!hrgn) return 0;
    1046 //CB: bug in GetDCEx with region!!!
    1047     rc = SendInternalMessageA(WM_NCPAINT,/*hrgn*/0,0);
    1048 //dprintf(("CB: %d %d %d %d",rect.left,rect.top,rect.bottom,rect.right));
     1045    rc = SendInternalMessageA(WM_NCPAINT,hrgn,0);
    10491046    DeleteObject(hrgn);
    1050     //CB: todo: check if intersection with client, what does PM's frame???
    10511047
    10521048    return rc;
Note: See TracChangeset for help on using the changeset viewer.