Changeset 12550


Ignore:
Timestamp:
Dec 4, 1999, 1:04:19 AM (25 years ago)
Author:
sandervl
Message:

Experimental WM_ERASEBACKGND change

Location:
tags/trunk/src/user32
Files:
3 edited

Legend:

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

    r12435 r12550  
    1 /* $Id: dc.cpp,v 1.23 1999-11-26 17:06:06 cbratschi Exp $ */
     1/* $Id: dc.cpp,v 1.24 1999-12-04 00:04:19 sandervl Exp $ */
    22
    33/*
     
    527527   lpps->hdc = (HDC)hps;
    528528
    529    if (wnd->isEraseBkgnd())
     529//   if (wnd->isEraseBkgnd())
    530530       wnd->setEraseBkgnd (FALSE, !wnd->MsgEraseBackGround(lpps->hdc));
    531531   wnd->setSupressErase (FALSE);
     
    841841   dprintf (("User32: UpdateWindow hwnd %x -> wnd %x", hwnd, wnd));
    842842
     843#if 0
    843844   if (WinQueryUpdateRect (wnd->getOS2WindowHandle(), NULL))
    844845       sendEraseBkgnd (wnd);
     846#endif
    845847
    846848#if 1
     
    12721274        return 0;
    12731275    }
    1274     dprintf(("ScrollWindow %x %d %d\n", hwnd, dx, dy));
     1276    dprintf(("ScrollWindow %x %d %d %x %x", hwnd, dx, dy, pScroll, pClip));
    12751277    MapWin32ToOS2Rectl(window->getOS2WindowHandle(),window->getClientRect(), (PRECTLOS2)&clientRect);
    12761278    //Rectangle could be relative to parent window, so fix this
     
    13341336    }
    13351337
    1336     dprintf(("ScrollWindowEx %x %d %d\n", hwnd, dx, dy));
     1338    dprintf(("ScrollWindowEx %x %d %d %x %x", hwnd, dx, dy, pScroll, pClip));
    13371339
    13381340    dy = revertDy (window, dy);
  • TabularUnified tags/trunk/src/user32/pmwindow.cpp

    r12469 r12550  
    1 /* $Id: pmwindow.cpp,v 1.60 1999-11-30 12:39:14 dengert Exp $ */
     1/* $Id: pmwindow.cpp,v 1.61 1999-12-04 00:04:19 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    880880    {
    881881        dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle()));
     882#if 1
     883        break;
     884#else
    882885
    883886        if (WinQueryUpdateRect (hwnd, NULL) && !win32wnd->isSupressErase()) {
     
    887890
    888891        break;
     892#endif
    889893    }
    890894
     
    893897        dprintf(("OS2: WM_PAINT %x", hwnd));
    894898
     899#if 0
    895900        if (WinQueryUpdateRect (hwnd, NULL)) {
    896901            if (!win32wnd->isSupressErase() && win32wnd->isEraseBkgnd()) {
     
    901906
    902907        win32wnd->setSupressErase (FALSE);
     908#endif
    903909
    904910        win32wnd->MsgPaint(0, 0);
  • TabularUnified tags/trunk/src/user32/win32wbase.cpp

    r12534 r12550  
    1 /* $Id: win32wbase.cpp,v 1.102 1999-12-02 19:30:40 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.103 1999-12-04 00:04:19 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16691669        return 1;
    16701670    }
     1671    case WM_PAINTICON:
     1672    case WM_PAINT:
     1673        {
     1674            PAINTSTRUCT ps;
     1675            HDC hdc = BeginPaint(getWindowHandle(), &ps );
     1676            if( hdc )
     1677            {
     1678              if( (getStyle() & WS_MINIMIZE) && getWindowClass()->getIcon())
     1679              {
     1680                int x = (rectWindow.right - rectWindow.left - GetSystemMetrics(SM_CXICON))/2;
     1681                int y = (rectWindow.bottom - rectWindow.top - GetSystemMetrics(SM_CYICON))/2;
     1682                    dprintf(("Painting class icon: vis rect=(%i,%i - %i,%i)\n", ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom ));
     1683                DrawIcon(hdc, x, y, getWindowClass()->getIcon() );
     1684              }
     1685              EndPaint(getWindowHandle(), &ps );
     1686            }
     1687            return 0;
     1688        }
     1689
    16711690    case WM_GETDLGCODE:
    16721691        return 0;
     
    26122631    {
    26132632        OSLibWinQueryWindowProcess(child->getOS2WindowHandle(), &pid, &tid);
    2614        
     2633
    26152634        if(dwThreadId == tid) {
    26162635            dprintf2(("EnumThreadWindows: Found Window %x", child->getWindowHandle()));
Note: See TracChangeset for help on using the changeset viewer.