Ignore:
Timestamp:
Feb 18, 2001, 3:18:39 PM (25 years ago)
Author:
sandervl
Message:

workaround for window origin changes

File:
1 edited

Legend:

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

    r5150 r5164  
    1 /* $Id: pmwindow.cpp,v 1.115 2001-02-17 17:11:17 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.116 2001-02-18 14:18:38 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    286286        dprintf(("OS2: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    287287
     288        if(win32wnd->getParent() && win32wnd->getParent()->isOwnDC()) {
     289            dprintfOrigin(win32wnd->getParent()->getOwnDC());
     290            selectClientArea(win32wnd->getParent(), win32wnd->getParent()->getOwnDC());
     291        }
     292
    288293        if(pswp->fl & SWP_NOADJUST) {
    289294            //ignore weird messages (TODO: why are they sent?)
     
    596601                win32wnd->setComingToTop(FALSE);
    597602                break;
     603        }
     604//test
     605        if(win32wnd->isOwnDC()) {
     606                dprintfOrigin(win32wnd->getOwnDC());
     607                selectClientArea(win32wnd, win32wnd->getOwnDC());
     608        }
     609//test
     610        goto RunDefWndProc;
     611
     612    case WM_VRNDISABLED:
     613        dprintf(("OS2: WM_VRNDISABLED %x %x %x", win32wnd->getWindowHandle(), mp1, mp2));
     614        if(win32wnd->isOwnDC()) {
     615                dprintfOrigin(win32wnd->getOwnDC());
    598616        }
    599617        goto RunDefWndProc;
Note: See TracChangeset for help on using the changeset viewer.