Changeset 2006 for trunk/src


Ignore:
Timestamp:
Dec 7, 1999, 1:26:59 PM (26 years ago)
Author:
sandervl
Message:

Misc fixes for repaint problems

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r1965 r2006  
    1 /* $Id: dc.cpp,v 1.24 1999-12-04 00:04:19 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.25 1999-12-07 12:26:58 sandervl Exp $ */
    22
    33/*
     
    516516//      WinSendMsg( hwnd, /* WM_DRAW */ 0x20D, (MPARAM)hps, MPVOID );
    517517      //CB: subclassed window haven't got a frame
    518       if (!wnd->isSubclassedOS2Wnd()) selectClientArea(wnd, pHps, &rect);
     518//      if (!wnd->isSubclassedOS2Wnd()) selectClientArea(wnd, pHps, &rect);
    519519//   }
    520520
     
    562562   if (!wnd) goto exit;
    563563
    564    if (wnd->isOwnDC())
     564   if(wnd->isOwnDC())
    565565   {
    566566       pDCData pHps = (pDCData)GpiQueryDCData((HPS)pPaint->hdc);
     
    568568       {
    569569           removeClientArea (pHps);
    570            WinEndPaint (pHps->hps);
     570          WinEndPaint (pHps->hps);
    571571       }
    572572   }
  • trunk/src/user32/win32wbase.cpp

    r1983 r2006  
    1 /* $Id: win32wbase.cpp,v 1.105 1999-12-05 16:37:58 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.106 1999-12-07 12:26:58 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    465465  if (cs->dwExStyle & WS_EX_DLGMODALFRAME) dwStyle &= ~WS_THICKFRAME;
    466466
    467   //TODO?
    468 #if 0
    469   /* Get class or window DC if needed */
    470   if (classPtr->style & CS_OWNDC) dce = DCE_AllocDCE(hwnd,DCE_WINDOW_DC);
    471   else if (classPtr->style & CS_CLASSDC) wndPtr->dce = classPtr->dce;
    472   else wndPtr->dce = NULL;
    473 #endif
    474 
    475467  if (cs->style & WS_HSCROLL)
    476468  {
     
    633625        SetIcon(windowClass->getIcon());
    634626
     627  /* Get class or window DC if needed */
     628  if(windowClass->getStyle() & CS_OWNDC) {
     629        dprintf(("Class with CS_OWNDC style"));
     630        ownDC = GetWindowDC(getWindowHandle());
     631  }
     632  else
     633  if (windowClass->getStyle() & CS_PARENTDC)  {
     634        dprintf(("ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!"));
     635        ownDC = 0;
     636  }
     637  else
     638  if (windowClass->getStyle() & CS_CLASSDC)  {
     639        dprintf(("ERROR: Class with CS_CLASSDC style -> NOT IMPLEMENTED!"));
     640        ownDC = 0;
     641  }
    635642  /* Set the window menu */
    636643  if ((dwStyle & (WS_CAPTION | WS_CHILD)) == WS_CAPTION )
  • trunk/src/user32/win32wbase.h

    r1983 r2006  
    1 /* $Id: win32wbase.h,v 1.49 1999-12-05 16:37:59 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.50 1999-12-07 12:26:59 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    364364         fakeOpen32WinBaseClass fakeWinBase;
    365365
    366          BOOL   isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); }
     366//         BOOL   isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); }
     367         BOOL   isOwnDC() { return FALSE; }
    367368         HDC    getOwnDC() { return ownDC; }
    368369         void   setOwnDC(HDC hdc) { ownDC = hdc; }
Note: See TracChangeset for help on using the changeset viewer.