Changeset 1172 for trunk/src


Ignore:
Timestamp:
Oct 7, 1999, 9:38:27 PM (26 years ago)
Author:
sandervl
Message:

Winhlp32 resize bugfix

File:
1 edited

Legend:

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

    r1171 r1172  
    1 /* $Id: pmwindow.cpp,v 1.19 1999-10-07 18:24:53 achimha Exp $ */
     1/* $Id: pmwindow.cpp,v 1.20 1999-10-07 19:38:27 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    271271      HWND      hParent = NULLHANDLE, hFrame = NULLHANDLE;
    272272      LONG      yDelta = pswp->cy - pswpo->cy;
     273      LONG      xDelta = pswp->cx - pswpo->cx;
    273274      ULONG     classStyle;
    274275
     
    296297        classStyle = win32wnd->getClass()->getStyle();
    297298
    298         if ((yDelta != 0) || (pswp->cx != pswpo->cx))
     299        if (yDelta != 0 || xDelta != 0)
    299300        {
    300301            HENUM henum = WinBeginEnumWindows(pswp->hwnd);
     
    306307            {
    307308#if 0
    308                if (mdiClient )
    309                {
     309                if (mdiClient )
     310                {
    310311                  continue;
    311                }
     312                }
    312313#endif
    313                WinQueryWindowPos(hwnd, &(swp[i]));
    314                swp[i].y += yDelta;
    315 
    316                if (i == 9)
    317                {
    318                   WinSetMultWindowPos(GetThreadHAB(), swp, 10);
    319                   i = 0;
    320                }
    321                else
    322                {
    323                   i++;
    324                }
     314                WinQueryWindowPos(hwnd, &(swp[i]));
     315
     316#ifdef DEBUG
     317                Win32BaseWindow *window = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
     318                dprintf(("ENUMERATE %x delta %d (%d,%d) (%d,%d)", (window) ? window->getWindowHandle() : hwnd,
     319                         yDelta, swp[i].x, swp[i].y, swp[i].cx, swp[i].cy));
     320#endif
     321
     322                swp[i].cy += yDelta;
     323                swp[i].fl  = SWP_SIZE;
     324
     325                if (i == 9)
     326                {
     327                    WinSetMultWindowPos(GetThreadHAB(), swp, 10);
     328                    i = 0;
     329                }
     330                else
     331                {
     332                    i++;
     333                }
    325334            }
    326335
     
    333342        {
    334343            POINT pt;
     344#if 1
     345            if(GetCaretPos (&pt) == TRUE)
     346            {
     347                pt.y -= yDelta;
     348                SetCaretPos (pt.x, pt.y);
     349            }
     350#else
    335351            GetCaretPos (&pt);
    336352            pt.y -= yDelta;
    337353            SetCaretPos (pt.x, pt.y);
     354#endif
    338355        }
    339356        win32wnd->MsgPosChanged((LPARAM)&wp);
     
    372389
    373390        OSLibMapSWPtoWINDOWPOS(&swp, &wp, &swpo, NULLHANDLE, hFrame);
     391
     392        dprintf(("OS2: WM_MOVE %x %x (%d,%d) (%d,%d)", hwnd, swp.fl, swp.x, swp.y, swp.cx, swp.cy));
    374393
    375394        wp.flags &= ~SWP_NOMOVE_W;
     
    776795     PSZ   wintext;
    777796
    778         if(wndpars->fsStatus & (WPM_CCHTEXT | WPM_TEXT)) 
     797        if(wndpars->fsStatus & (WPM_CCHTEXT | WPM_TEXT))
    779798        {
    780799            if(wndpars->fsStatus & WPM_CCHTEXT)
Note: See TracChangeset for help on using the changeset viewer.