Ignore:
Timestamp:
Oct 24, 1999, 1:05:05 AM (26 years ago)
Author:
sandervl
Message:

Combobox + windowpos changes + fixes

Location:
trunk/src/user32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32

    • Property svn:ignore set to
      user32.lrf
      user32exp.def
      resource.asm
  • trunk/src/user32/pmwindow.cpp

    r1418 r1425  
    1 /* $Id: pmwindow.cpp,v 1.42 1999-10-23 16:45:20 cbratschi Exp $ */
     1/* $Id: pmwindow.cpp,v 1.43 1999-10-23 23:04:37 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    2929#include "oslibmsg.h"
    3030#include "dc.h"
    31 #include "timer.h"
    3231#include <thread.h>
    3332#include <wprocess.h>
    34 #include <caret.h>
     33#include "caret.h"
     34#include "timer.h"
    3535
    3636HMQ  hmq = 0;                             /* Message queue handle         */
     
    248248        break;
    249249
    250 #if 1
     250#if 0
    251251    case WM_ADJUSTWINDOWPOS:
    252252    {
    253253      PSWP     pswp = (PSWP)mp1;
    254       SWP      swpOld;
     254      SWP      swpOld, swpNew;
    255255      WINDOWPOS wp;
    256256      ULONG     parentHeight = 0;
     
    291291            dprintf(("OS2: WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
    292292            dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    293             OSLibMapWINDOWPOStoSWP(&wp, pswp, &swpOld, hParent, hFrame);
    294             dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    295             pswp->fl |= SWP_NOADJUST;
    296             pswp->hwndInsertBehind = hwndAfter;
    297             pswp->hwnd = hFrame;
    298 
    299             WinSetMultWindowPos(GetThreadHAB(), pswp, 1);
     293            OSLibMapWINDOWPOStoSWP(&wp, &swpNew, &swpOld, hParent, hFrame);
     294            dprintf(("%x (%d,%d), (%d,%d)", swpNew.fl, swpNew.x, swpNew.y, swpNew.cx, swpNew.cy));
     295            swpNew.fl |= SWP_NOADJUST;
     296            swpNew.hwndInsertBehind = hwndAfter;
     297            swpNew.hwnd = hFrame;
     298
     299            WinSetMultWindowPos(GetThreadHAB(), &swpNew, 1);
    300300            return (MRESULT)0;
    301301        }
    302302        break;
    303303    }
    304 #endif
    305304
    306305    case WM_WINDOWPOSCHANGED:
     
    316315
    317316        if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) break;
    318         if (!win32wnd->CanReceiveSizeMsgs())    break;
    319317
    320318        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
     
    326324            }
    327325        }
    328         OSLibMapSWPtoWINDOWPOS(pswp, &wp, &swpOld, hParent, hwnd);
     326        OSLibMapSWPtoWINDOWPOS(pswp, &wp, &swpOld, hParent, win32wnd->getOS2FrameWindowHandle());
     327
     328        if (!win32wnd->CanReceiveSizeMsgs())    break;
    329329
    330330        win32wnd->setWindowRect(wp.x, wp.y, wp.x+wp.cx, wp.y+wp.cy);
     
    398398        goto RunDefWndProc;
    399399    }
    400 
    401     case WM_SIZE:
    402     {
    403         dprintf(("OS2: WM_SIZE (%d,%d) (%d,%d)", SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SHORT1FROMMP(mp1), SHORT2FROMMP(mp2)));
    404         break;
    405     }
    406 
    407     case WM_OWNERPOSCHANGE:
    408     {
    409         dprintf(("OS2: WM_OWNERPOSCHANGE"));
    410         goto RunDefWndProc;
    411     }
    412 
    413     case WM_CALCVALIDRECTS:
    414     {
    415         dprintf(("OS2: WM_CALCVALIDRECTS"));
    416         goto RunDefWndProc;
    417     }
     400#endif
    418401
    419402    case WM_ACTIVATE:
     
    438421        break;
    439422    }
     423
     424    case WM_SIZE:
     425    {
     426        dprintf(("OS2: WM_SIZE (%d,%d) (%d,%d)", SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SHORT1FROMMP(mp1), SHORT2FROMMP(mp2)));
     427        break;
     428    }
     429
     430    case WM_OWNERPOSCHANGE:
     431    {
     432        dprintf(("OS2: WM_OWNERPOSCHANGE"));
     433        goto RunDefWndProc;
     434    }
     435
     436    case WM_CALCVALIDRECTS:
     437    {
     438        dprintf(("OS2: WM_CALCVALIDRECTS"));
     439        goto RunDefWndProc;
     440    }
     441
    440442    case WM_FOCUSCHANGE:
    441443        dprintf(("OS2: WM_FOCUSCHANGE %x", hwnd));
Note: See TracChangeset for help on using the changeset viewer.