Ignore:
Timestamp:
Oct 17, 1999, 2:17:46 PM (26 years ago)
Author:
cbratschi
Message:

added WINE scrollbars to frame, fixed pmframe, WM_ENTERIDLE

File:
1 edited

Legend:

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

    r1303 r1333  
    1 /* $Id: pmframe.cpp,v 1.6 1999-10-14 21:37:44 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.7 1999-10-17 12:17:44 cbratschi Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    183183
    184184      wndchild = Win32BaseWindow::GetWindowFromOS2FrameHandle(pswp->hwnd);
    185       if(wndchild && wndchild->isChild()) 
     185      if(wndchild && wndchild->isChild())
    186186      {
    187187#if 0
    188188       SWP swp = *pswp;
    189189
    190         MRESULT rc = OldFrameProc(hwnd, msg, mp1, mp2);
    191         pswp->x = swp.x;
    192         pswp->y = swp.y;
    193         pswp->fl = swp.fl;
     190        MRESULT rc = OldFrameProc(hwnd, msg, mp1, mp2);
     191        pswp->x = swp.x;
     192        pswp->y = swp.y;
     193        pswp->fl = swp.fl;
    194194#endif
    195         dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", hwnd, pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    196         RestoreOS2TIB();
    197         return (MRESULT)0;
     195        dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", hwnd, pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
     196        RestoreOS2TIB();
     197        return (MRESULT)0;
    198198      }
    199199      goto RunDefFrameProc;
     
    272272
    273273          GetSizeBox(win32wnd,&rect);
    274           hps = WinGetPS(hwnd);
     274          hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
    275275          DrawSizeBox(hps,rect);
    276276          WinReleasePS(hps);
     
    289289        SetWin32TIB();
    290290
     291        WinQueryWindowRect(hwnd,&rect);
     292        rect.xRight = rect.xRight-rect.xLeft;
     293        rect.yTop = rect.yTop-rect.yBottom;
     294        rect.xLeft = rect.yBottom = 0;
    291295        hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
    292         WinQueryWindowRect(hwnd,&rect);
    293296        DrawFrame(hps,&rect,win32wnd);
    294         WinFillRect(hps,&rect,SYSCLR_DIALOGBACKGROUND);
    295297        WinReleasePS(hps);
    296298
     
    316318
    317319          GetSizeBox(win32wnd,&rect);
    318           hps = WinGetPS(hwnd);
     320          hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
    319321          DrawSizeBox(hps,rect);
    320322          WinReleasePS(hps);
     
    323325          return res;
    324326        } else goto RunDefFrameProc;
    325       }
    326 //SvL: I doubt this is necessary. Just look at winhlp32. First it draws the
    327 //     the background gray and then white.
    328 #if 0
    329       else
     327      } else
    330328      {
    331329        RECTL rect;
    332         HPS hps = WinBeginPaint(hwnd,0,&rect);
    333 
     330        HPS hps;
     331
     332        RestoreOS2TIB();
     333        OldFrameProc(hwnd,msg,mp1,mp2);
     334        SetWin32TIB();
     335
     336        WinQueryWindowRect(hwnd,&rect);
     337        rect.xRight = rect.xRight-rect.xLeft;
     338        rect.yTop = rect.yTop-rect.yBottom;
     339        rect.xLeft = rect.yBottom = 0;
     340        hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
    334341        DrawFrame(hps,&rect,win32wnd);
    335         WinFillRect(hps,&rect,SYSCLR_DIALOGBACKGROUND);
    336         WinEndPaint(hps);
     342        WinReleasePS(hps);
    337343
    338344        RestoreOS2TIB();
    339345        return (MRESULT)0;
    340346      }
    341 #endif
    342347
    343348    default:
Note: See TracChangeset for help on using the changeset viewer.