Ignore:
Timestamp:
May 15, 2001, 4:31:40 PM (24 years ago)
Author:
sandervl
Message:

SetFocus fix

File:
1 edited

Legend:

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

    r5685 r5713  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.50 2001-05-11 08:39:43 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.51 2001-05-15 14:31:38 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    192192  TEB             *teb = (TEB *)pTeb;
    193193  BOOL             fWasDisabled = FALSE;
     194  BOOL             fIsFrame = FALSE;
    194195  int i;
    195196
     
    198199    if(!win32wnd) {
    199200        win32wnd = Win32BaseWindow::GetWindowFromOS2FrameHandle(os2Msg->hwnd);
     201        if(win32wnd) {
     202            fIsFrame = TRUE;
     203        }
    200204    }
    201205
     
    276280      LONG      xDelta = pswp->cx - swpOld.cx;
    277281
     282        if(!fIsFrame) goto dummymessage;
     283
    278284        if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) goto dummymessage;
    279285
     
    294300        if (!win32wnd->CanReceiveSizeMsgs())    goto dummymessage;
    295301
    296         if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
    297 /////                dprintf(("Set client rectangle to (%d,%d)(%d,%d)", swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy));
    298 /////                win32wnd->setClientRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy);
    299 
     302        if(pswp->fl & (SWP_MOVE | SWP_SIZE))
     303        {
    300304                teb->o.odin.wp.hwnd = win32wnd->getWindowHandle();
    301305                if ((pswp->fl & SWP_ZORDER) && (pswp->hwndInsertBehind > HWND_BOTTOM))
Note: See TracChangeset for help on using the changeset viewer.