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/pmwindow.cpp

    r4599 r4658  
    1 /* $Id: pmwindow.cpp,v 1.107 2000-11-15 20:30:46 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.108 2000-11-21 11:36:09 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    144144 OSLIBPOINT       point, ClientPoint;
    145145 Win32BaseWindow *win32wnd;
    146  THDB            *thdb;
     146 TEB             *teb;
    147147 APIRET           rc = 0;
    148148 MSG              winMsg, *pWinMsg;
     
    151151  SetWin32TIB();
    152152
    153   thdb = GetThreadTHDB();
     153  teb = GetThreadTEB();
    154154  win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
    155155
    156   if(!thdb || (msg != WM_CREATE && win32wnd == NULL)) {
     156  if(!teb || (msg != WM_CREATE && win32wnd == NULL)) {
    157157        dprintf(("Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
    158158        goto RunDefWndProc;
    159159  }
    160160
    161   if((thdb->msgstate & 1) == 0)
     161  if((teb->o.odin.msgstate & 1) == 0)
    162162  {//message that was sent directly to our window proc handler; translate it here
    163163        QMSG qmsg;
     
    167167        qmsg.mp1  = mp1;
    168168        qmsg.mp2  = mp2;
    169         qmsg.time = WinQueryMsgTime(thdb->hab);
    170         WinQueryMsgPos(thdb->hab, &qmsg.ptl);
     169        qmsg.time = WinQueryMsgTime(teb->o.odin.hab);
     170        WinQueryMsgPos(teb->o.odin.hab, &qmsg.ptl);
    171171        qmsg.reserved = 0;
    172172
    173         if(OS2ToWinMsgTranslate((PVOID)thdb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE)
     173        if(OS2ToWinMsgTranslate((PVOID)teb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE)
    174174        {//message was not translated
    175175            memset(&winMsg, 0, sizeof(MSG));
     
    178178  }
    179179  else {
    180         pWinMsg = &thdb->msg;
    181         thdb->msgstate++;
     180        pWinMsg = &teb->o.odin.msg;
     181        teb->o.odin.msgstate++;
    182182  }
    183183
     
    197197    case WM_CREATE:
    198198    {
    199         if(thdb->newWindow == 0)
     199        if(teb->o.odin.newWindow == 0)
    200200            goto createfail;
    201201
    202202        //Processing is done in after WinCreateWindow returns
    203203        dprintf(("OS2: WM_CREATE %x", hwnd));
    204         win32wnd = (Win32BaseWindow *)thdb->newWindow;
    205         thdb->newWindow = 0;
     204        win32wnd = (Win32BaseWindow *)teb->o.odin.newWindow;
     205        teb->o.odin.newWindow = 0;
    206206        if(win32wnd->MsgCreate(hwnd) == FALSE)
    207207        {
     
    794794    case WM_RENDERFMT:
    795795    case WM_RENDERALLFMTS:
     796    case WM_DESTROYCLIPBOARD:
    796797        win32wnd->DispatchMsgA(pWinMsg);
    797798        break;
Note: See TracChangeset for help on using the changeset viewer.