Ignore:
Timestamp:
Jan 12, 2000, 11:07:28 PM (26 years ago)
Author:
cbratschi
Message:

fixed WM_CALCVALIDRECTS

File:
1 edited

Legend:

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

    r2422 r2425  
    1 /* $Id: pmwindow.cpp,v 1.38 2000-01-12 19:43:58 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.39 2000-01-12 22:07:28 cbratschi Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    295295    }
    296296
    297 #if 0
    298297    case WM_CALCVALIDRECTS:
    299     {
    300       PRECTL oldRect = (PRECTL)mp1,newRect = oldRect+1;
    301       UINT res = CVR_ALIGNLEFT | CVR_ALIGNTOP;
    302 
    303 //CB: todo: use WM_NCCALCSIZE result
    304       if (win32wnd->getWindowClass())
    305       {
    306         DWORD dwStyle = win32wnd->getWindowClass()->getClassLongA(GCL_STYLE_W);
    307 
    308         if ((dwStyle & CS_HREDRAW_W) && (newRect->xRight-newRect->xLeft != oldRect->xRight-oldRect->xLeft))
    309           res |= CVR_REDRAW;
    310         else if ((dwStyle & CS_VREDRAW_W) && (newRect->yTop-newRect->yBottom != oldRect->yTop-oldRect->yBottom))
    311           res |= CVR_REDRAW;
    312       } else res |= CVR_REDRAW;
    313 
    314298      RestoreOS2TIB();
    315       WinDefWindowProc(hwnd,msg,mp1,mp2);
    316       RestoreOS2TIB();
    317       return (MRESULT)res;
    318     }
    319 #endif
     299      return (MRESULT)(CVR_ALIGNLEFT | CVR_ALIGNTOP);
    320300
    321301    case WM_SETFOCUS:
     
    440420    {
    441421        dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle()));
    442         break;
     422        RestoreOS2TIB();
     423        return (MRESULT)FALSE;
    443424    }
    444425
Note: See TracChangeset for help on using the changeset viewer.