Ignore:
Timestamp:
Oct 8, 1999, 1:21:31 AM (26 years ago)
Author:
sandervl
Message:

SetWindowPos bugfix

File:
1 edited

Legend:

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

    r1172 r1176  
    1 /* $Id: pmwindow.cpp,v 1.20 1999-10-07 19:38:27 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.21 1999-10-07 23:21:30 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    149149     (PSZ)WIN32_STDCLASS,               /* Window class name            */
    150150     (PFNWP)Win32WindowProc,            /* Address of window procedure  */
    151      CS_SIZEREDRAW | CS_HITTEST | CS_MOVENOTIFY,
     151//     CS_SIZEREDRAW | CS_HITTEST | CS_MOVENOTIFY,
     152     CS_SIZEREDRAW | CS_HITTEST,
    152153     NROF_WIN32WNDBYTES)) {
    153154        dprintf(("WinRegisterClass Win32BaseWindow failed"));
     
    342343        {
    343344            POINT pt;
    344 #if 1
    345345            if(GetCaretPos (&pt) == TRUE)
    346346            {
     
    348348                SetCaretPos (pt.x, pt.y);
    349349            }
    350 #else
    351             GetCaretPos (&pt);
    352             pt.y -= yDelta;
    353             SetCaretPos (pt.x, pt.y);
    354 #endif
    355350        }
    356351        win32wnd->MsgPosChanged((LPARAM)&wp);
    357352
    358         break;
     353        goto RunDefWndProc;
     354//        break;
    359355    }
    360356
     
    387383        swp.hwnd             = hwnd;
    388384        swp.hwndInsertBehind = NULLHANDLE;
     385        dprintf(("OS2: WM_MOVE %x %x (%d,%d) (%d,%d)", hwnd, swp.fl, swp.x, swp.y, swp.cx, swp.cy));
    389386
    390387        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));
    393388
    394389        wp.flags &= ~SWP_NOMOVE_W;
     
    399394        break;
    400395    }
     396
    401397    case WM_SIZE:
    402398    {
Note: See TracChangeset for help on using the changeset viewer.