Ignore:
Timestamp:
Jan 26, 2000, 7:02:38 PM (26 years ago)
Author:
cbratschi
Message:

refixed WM_WINDOWPOS*

File:
1 edited

Legend:

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

    r2483 r2521  
    1 /* $Id: pmframe.cpp,v 1.38 2000-01-20 16:48:55 cbratschi Exp $ */
     1/* $Id: pmframe.cpp,v 1.39 2000-01-26 18:02:35 cbratschi Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    141141    case WM_QUERYTRACKINFO:
    142142    {
    143       //CB: todo: use minmaxinfo
    144       goto RunDefFrameProc;
     143      PTRACKINFO trackInfo = (PTRACKINFO)mp2;
     144
     145      RestoreOS2TIB();
     146      OldFrameProc(hwnd,msg,mp1,mp2);
     147      SetWin32TIB();
     148      trackInfo->cxBorder = 0;
     149      trackInfo->cyBorder = 0;
     150      win32wnd->AdjustTrackInfo((PPOINT)&trackInfo->ptlMinTrackSize,(PPOINT)&trackInfo->ptlMaxTrackSize);
     151      RestoreOS2TIB();
     152      return (MRESULT)TRUE;
    145153    }
    146154
     
    212220      PSWP     pswp = (PSWP)mp1;
    213221      SWP      swpOld;
    214       WINDOWPOS wp;
     222      WINDOWPOS wp,wpOld;
    215223      HWND      hParent = NULLHANDLE, hwndAfter;
    216224
     
    254262        }
    255263
    256         //CB: problems with profmine titlebar tracking
    257         if(win32wnd->MsgPosChanging((LPARAM)&wp) == 0)
    258         {//app or default window handler changed wp
    259             dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
    260             dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    261 
    262             OSLibMapWINDOWPOStoSWPFrame(&wp, pswp, &swpOld, hParent, hwnd);
    263             dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    264             pswp->fl |= SWP_NOADJUST;
    265             pswp->hwndInsertBehind = hwndAfter;
    266             pswp->hwnd = hwnd;
    267 
    268             RestoreOS2TIB();
    269             return (MRESULT)0xf;
     264        wpOld = wp;
     265        win32wnd->MsgPosChanging((LPARAM)&wp);
     266
     267        if ((wp.hwndInsertAfter != wpOld.hwndInsertAfter) ||
     268            (wp.x != wpOld.x) || (wp.y != wpOld.y) || (wp.cx != wpOld.cx) || (wp.cy != wpOld.cy) || (wp.flags != wpOld.flags))
     269        {
     270          dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
     271          dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
     272
     273          OSLibMapWINDOWPOStoSWPFrame(&wp, pswp, &swpOld, hParent, hwnd);
     274          dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
     275          pswp->fl |= SWP_NOADJUST;
     276          pswp->hwndInsertBehind = hwndAfter;
     277          pswp->hwnd = hwnd;
     278
     279          RestoreOS2TIB();
     280          return (MRESULT)0xf;
    270281        }
    271282        goto RunDefFrameProc;
Note: See TracChangeset for help on using the changeset viewer.