Changeset 223 for trunk/src/user32/wndclass.cpp
- Timestamp:
- Jun 26, 1999, 8:25:08 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/wndclass.cpp
r220 r223 1 /* $Id: wndclass.cpp,v 1.1 2 1999-06-26 15:07:01sandervl Exp $ */1 /* $Id: wndclass.cpp,v 1.13 1999-06-26 18:25:08 sandervl Exp $ */ 2 2 3 3 /* … … 25 25 #include <nameid.h> 26 26 #include <spy.h> 27 #include <wprocess.h> 27 28 #include "hooks.h" 28 29 … … 70 71 LRESULT rc; 71 72 73 //Restore our FS selector 74 SetWin32TIB(); 75 72 76 PostSpyMessage(hwnd, Msg, wParam, lParam); 73 77 switch(Msg) … … 75 79 case WM_LBUTTONDOWN: 76 80 rc = ButtonHandler(hwnd, Msg, wParam, lParam); 81 //Restore our FS selector 82 SetWin32TIB(); 77 83 78 84 NotifyParent(hwnd, Msg, wParam, lParam); … … 97 103 case WM_RBUTTONDOWN: 98 104 rc = ButtonHandler(hwnd, Msg, wParam, lParam); 105 //Restore our FS selector 106 SetWin32TIB(); 99 107 NotifyParent(hwnd, Msg, wParam, lParam); 108 RestoreOS2TIB(); 100 109 return rc; 101 110 … … 104 113 break; 105 114 } 106 return ButtonHandler(hwnd, Msg, wParam, lParam); 115 rc = ButtonHandler(hwnd, Msg, wParam, lParam); 116 RestoreOS2TIB(); 117 return rc; 107 118 } 108 119 //****************************************************************************** … … 827 838 Win32WindowProc *window; 828 839 840 //Restore our FS selector 841 SetWin32TIB(); 842 829 843 if(Msg == WM_MOUSEACTIVATE) 830 844 { … … 839 853 840 854 if(HkCBT::OS2HkCBTProc(hwnd, Msg, wParam, lParam) == TRUE) {//hook swallowed msg 855 RestoreOS2TIB(); 841 856 return(0); 842 857 } … … 862 877 863 878 NotifyParent(hwnd, WM_CREATE, wParam, lParam); 879 RestoreOS2TIB(); 864 880 return(rc); 865 881 … … 898 914 break; 899 915 } 900 return wclass->GetWinCallback()(hwnd, Msg, wParam, lParam); 916 rc = wclass->GetWinCallback()(hwnd, Msg, wParam, lParam); 917 RestoreOS2TIB(); 918 return rc; 901 919 } 902 920 } 903 921 dprintf(("OS2ToWinCallback: couldn't find class procedure of window %X\n", hwnd)); 922 RestoreOS2TIB(); 904 923 return(0); 905 924 }
Note:
See TracChangeset
for help on using the changeset viewer.