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

    r218 r223  
    1 /* $Id: wndproc.cpp,v 1.10 1999-06-26 14:09:45 sandervl Exp $ */
     1/* $Id: wndproc.cpp,v 1.11 1999-06-26 18:25:08 sandervl Exp $ */
    22
    33/*
     
    2121#include <wndclass.h>
    2222#include <spy.h>
     23#include <wprocess.h>
    2324#include "dlgconvert.h"
    2425#include "hooks.h"
     
    289290 LRESULT rc;
    290291
     292  //Restore our FS selector
     293  SetWin32TIB();
     294
    291295  if(Msg == WM_MOUSEACTIVATE)
    292296  {
     
    302306
    303307  if(HkCBT::OS2HkCBTProc(hwnd, Msg, wParam, lParam) == TRUE) {//hook swallowed msg
     308        RestoreOS2TIB();
    304309        return(0);
    305310  }
     
    321326        case WM_CREATE:  //Open32 isn't sending WM_NCCREATE messages!!
    322327                if(curwnd->SendMessageA(hwnd, WM_NCCREATE, 0, lParam) == 0) {
    323                        dprintf(("WM_NCCREATE returned FALSE\n"));
    324                        return(-1); //don't create window
     328                        dprintf(("WM_NCCREATE returned FALSE\n"));
     329                        RestoreOS2TIB();
     330                        return(-1); //don't create window
    325331                }
    326332       
     
    329335#if 0
    330336                if(curwnd->SendMessageA(hwnd, WM_NCCALCSIZE, 0, lParam) == 0) {
     337                        RestoreOS2TIB();
    331338                        return(-1); //don't create window
    332339                }
     
    357364                delete curwnd;
    358365        }
     366        RestoreOS2TIB();
    359367        return rc;
    360368  }
     
    370378                wnd = new Win32WindowProc(wclass->GetClassCallback(szClass));
    371379                wnd->SetWindowHandle(hwnd);
    372                 return(WndCallback(hwnd, Msg, wParam, lParam));
     380                rc = WndCallback(hwnd, Msg, wParam, lParam);
     381                RestoreOS2TIB();
     382                return rc;
    373383        }
    374384  }
    375385  dprintf(("wnd Callback, can't find window %X %d!!!!\n", hwnd, Msg));
     386  RestoreOS2TIB();
    376387  return 0;
    377388}
Note: See TracChangeset for help on using the changeset viewer.