Ignore:
Timestamp:
Nov 21, 2000, 12:36:09 PM (25 years ago)
Author:
sandervl
Message:

Updates for TEB changes

File:
1 edited

Legend:

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

    r3603 r4658  
    1 /* $Id: pmframe.cpp,v 1.55 2000-05-24 19:30:05 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.56 2000-11-21 11:36:08 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    6868 PFNWP            OldFrameProc;
    6969 MRESULT          rc;
    70  THDB            *thdb;
     70 TEB             *teb;
    7171 MSG             *pWinMsg,winMsg;
    7272
    7373  SetWin32TIB();
    7474
    75   thdb = GetThreadTHDB();
     75  teb = GetThreadTEB();
    7676  win32wnd = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwnd);
    7777
    78   if (!thdb || (win32wnd == NULL) || !win32wnd->getOldFrameProc())
     78  if (!teb || (win32wnd == NULL) || !win32wnd->getOldFrameProc())
    7979  {
    8080    dprintf(("Invalid win32wnd pointer for frame %x!!", hwnd));
     
    8282  }
    8383
    84   if((thdb->msgstate & 1) == 0)
     84  if((teb->o.odin.msgstate & 1) == 0)
    8585  {//message that was sent directly to our window proc handler; translate it here
    8686        QMSG qmsg;
     
    9090        qmsg.mp1  = mp1;
    9191        qmsg.mp2  = mp2;
    92         qmsg.time = WinQueryMsgTime(thdb->hab);
    93         WinQueryMsgPos(thdb->hab, &qmsg.ptl);
     92        qmsg.time = WinQueryMsgTime(teb->o.odin.hab);
     93        WinQueryMsgPos(teb->o.odin.hab, &qmsg.ptl);
    9494        qmsg.reserved = 0;
    9595
    96         if(OS2ToWinMsgTranslate((PVOID)thdb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE)
     96        if(OS2ToWinMsgTranslate((PVOID)teb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE)
    9797        {//message was not translated
    9898            memset(&winMsg, 0, sizeof(MSG));
     
    101101  }
    102102  else {
    103         pWinMsg = &thdb->msg;
    104         thdb->msgstate++;
     103        pWinMsg = &teb->o.odin.msg;
     104        teb->o.odin.msgstate++;
    105105  }
    106106
     
    357357          //TODO: Get rid of SWP_SHOW; needed for winhlp32 button bar for now
    358358          swpClient.fl = (pswp->fl & ~SWP_ZORDER) | SWP_MOVE | SWP_SHOW;
    359           WinSetMultWindowPos(thdb->hab, &swpClient, 1);
     359          WinSetMultWindowPos(teb->o.odin.hab, &swpClient, 1);
    360360
    361361          //update child positions: rectWindow is in window coordinates
Note: See TracChangeset for help on using the changeset viewer.