Ignore:
Timestamp:
Jun 14, 2000, 3:17:51 PM (25 years ago)
Author:
sandervl
Message:

region changes

File:
1 edited

Legend:

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

    r3679 r3705  
    1 /* $Id: pmwindow.cpp,v 1.93 2000-06-08 18:10:10 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.94 2000-06-14 13:15:24 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    200200    case WM_CREATE:
    201201    {
     202        RestoreOS2TIB();
     203        PMFrameWindowProc(hwnd, msg, mp1, mp2);
     204        SetWin32TIB();
    202205
    203206        if(thdb->newWindow == 0)
     
    213216            return (MRESULT)TRUE; //discontinue window creation
    214217        }
    215         RestoreOS2TIB();
    216         PMFrameWindowProc(hwnd, msg, mp1, mp2);
    217         SetWin32TIB();
    218218    createfail:
    219219        RestoreOS2TIB();
     
    235235        win32wnd->MsgDestroy();
    236236        WinSetVisibleRegionNotify(hwnd, FALSE);
    237         goto RunDefWndProc;
     237        goto RunDefFrameProc;
    238238
    239239    case WM_ENABLE:
     
    450450        dprintf(("OS2: WM_ACTIVATE %x %x %x", hwnd, mp1, mp2));
    451451
     452        WinSetWindowUShort(hwnd,QWS_FLAGS, SHORT1FROMMP(mp1) ? (flags | FF_ACTIVE):(flags & ~FF_ACTIVE));
    452453        if(win32wnd->IsWindowCreated())
    453454        {
    454           WinSetWindowUShort(hwnd,QWS_FLAGS,mp1 ? (flags | FF_ACTIVE):(flags & ~FF_ACTIVE));
    455455          win32wnd->MsgActivate((LOWORD(pWinMsg->wParam) == WA_ACTIVE_W) ? 1 : 0, HIWORD(pWinMsg->wParam), pWinMsg->lParam, (HWND)mp2);
    456456
     
    463463          }
    464464        }
    465 
    466         break;
     465        RestoreOS2TIB();
     466        return 0;
    467467    }
    468468
     
    470470    {
    471471        dprintf(("OS2: WM_SIZE (%d,%d) (%d,%d)", SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SHORT1FROMMP(mp1), SHORT2FROMMP(mp2)));
    472         break;
    473     }
    474 
     472        goto RunDefWndProc;
     473    }
    475474
    476475    case WM_MINMAXFRAME:
     
    737736
    738737    case WM_FOCUSCHANGE:
    739         dprintf(("OS2: WM_FOCUSCHANGE %x", win32wnd->getWindowHandle()));
    740         goto RunDefWndProc;
     738        dprintf(("OS2: WM_FOCUSCHANGE %x %x %x", win32wnd->getWindowHandle(), mp1, mp2));
     739        goto RunDefFrameProc;  //partly responsible for activation of frame windows
    741740
    742741    case WM_QUERYTRACKINFO:
Note: See TracChangeset for help on using the changeset viewer.