Ignore:
Timestamp:
Jun 26, 1999, 8:25:08 PM (26 years ago)
Author:
sandervl
Message:

FS changes for msg callbacks & OS2/Open32 apis

File:
1 edited

Legend:

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

    r220 r223  
    1 /* $Id: wndclass.cpp,v 1.12 1999-06-26 15:07:01 sandervl Exp $ */
     1/* $Id: wndclass.cpp,v 1.13 1999-06-26 18:25:08 sandervl Exp $ */
    22
    33/*
     
    2525#include <nameid.h>
    2626#include <spy.h>
     27#include <wprocess.h>
    2728#include "hooks.h"
    2829
     
    7071 LRESULT rc;
    7172
     73  //Restore our FS selector
     74  SetWin32TIB();
     75
    7276  PostSpyMessage(hwnd, Msg, wParam, lParam);
    7377  switch(Msg)
     
    7579        case WM_LBUTTONDOWN:
    7680                rc = ButtonHandler(hwnd, Msg, wParam, lParam);
     81                //Restore our FS selector
     82                SetWin32TIB();
    7783
    7884                NotifyParent(hwnd, Msg, wParam, lParam);
     
    97103        case WM_RBUTTONDOWN:
    98104                rc = ButtonHandler(hwnd, Msg, wParam, lParam);
     105                //Restore our FS selector
     106                SetWin32TIB();
    99107                NotifyParent(hwnd, Msg, wParam, lParam);
     108                RestoreOS2TIB();
    100109                return rc;
    101110
     
    104113                break;
    105114  }
    106   return ButtonHandler(hwnd, Msg, wParam, lParam);
     115  rc = ButtonHandler(hwnd, Msg, wParam, lParam);
     116  RestoreOS2TIB();
     117  return rc;
    107118}
    108119//******************************************************************************
     
    827838 Win32WindowProc      *window;
    828839
     840  //Restore our FS selector
     841  SetWin32TIB();
     842
    829843  if(Msg == WM_MOUSEACTIVATE)
    830844  {
     
    839853
    840854  if(HkCBT::OS2HkCBTProc(hwnd, Msg, wParam, lParam) == TRUE) {//hook swallowed msg
     855        RestoreOS2TIB();
    841856        return(0);
    842857  }
     
    862877
    863878                        NotifyParent(hwnd, WM_CREATE, wParam, lParam);
     879                        RestoreOS2TIB();
    864880                        return(rc);
    865881
     
    898914                        break;
    899915                }
    900                 return wclass->GetWinCallback()(hwnd, Msg, wParam, lParam);
     916                rc = wclass->GetWinCallback()(hwnd, Msg, wParam, lParam);
     917                RestoreOS2TIB();
     918                return rc;
    901919        }
    902920  }
    903921  dprintf(("OS2ToWinCallback: couldn't find class procedure of window %X\n", hwnd));
     922  RestoreOS2TIB();
    904923  return(0);
    905924}
Note: See TracChangeset for help on using the changeset viewer.