Changeset 314 for trunk/src/user32/new/windowmsg.cpp
- Timestamp:
- Jul 16, 1999, 1:32:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/windowmsg.cpp
r310 r314 1 /* $Id: windowmsg.cpp,v 1. 4 1999-07-15 18:41:46sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.5 1999-07-16 11:32:10 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 16 16 #include <misc.h> 17 17 #include <win32wnd.h> 18 #include <handlemanager.h>19 18 #include <win.h> 20 19 #include <hooks.h> … … 47 46 if (!msg->hwnd) return 0; 48 47 49 if(HMHandleTranslateToOS2(msg->hwnd, (PULONG)&window) != NO_ERROR) { 48 window = Win32Window::GetWindowFromHandle(msg->hwnd); 49 if(!window) { 50 50 dprintf(("DispatchMessageA, window %x not found", msg->hwnd)); 51 51 return 0; … … 58 58 59 59 #if 0 60 if(HMHandleTranslateToOS2(msg->hwnd, (PULONG)&window) != NO_ERROR) { 60 window = Win32Window::GetWindowFromHandle(msg->hwnd); 61 if(!window) { 61 62 dprintf(("DispatchMessageA, window %x not found", msg->hwnd)); 62 63 return 0; … … 93 94 if (!msg->hwnd) return 0; 94 95 95 if(HMHandleTranslateToOS2(msg->hwnd, (PULONG)&window) != NO_ERROR) { 96 window = Win32Window::GetWindowFromHandle(msg->hwnd); 97 if(!window) { 96 98 dprintf(("DispatchMessageW, window %x not found", msg->hwnd)); 97 99 return 0; … … 104 106 105 107 #if 0 106 if(HMHandleTranslateToOS2(msg->hwnd, (PULONG)&window) != NO_ERROR) { 108 window = Win32Window::GetWindowFromHandle(msg->hwnd); 109 if(!window) { 107 110 dprintf(("DispatchMessageW, window %x not found", msg->hwnd)); 108 111 return 0; … … 136 139 Win32Window *window; 137 140 138 if(HMHandleTranslateToOS2(hwnd, (PULONG)&window) != NO_ERROR) { 141 window = Win32Window::GetWindowFromHandle(hwnd); 142 if(!window) { 139 143 dprintf(("SendMessageA, window %x not found", hwnd)); 140 144 return 0; … … 149 153 Win32Window *window; 150 154 151 if(HMHandleTranslateToOS2(hwnd, (PULONG)&window) != NO_ERROR) { 155 window = Win32Window::GetWindowFromHandle(hwnd); 156 if(!window) { 152 157 dprintf(("SendMessageW, window %x not found", hwnd)); 153 158 return 0; … … 165 170 return PostThreadMessageA(GetCurrentThreadId(), msg, wParam, lParam); 166 171 167 if(HMHandleTranslateToOS2(hwnd, (PULONG)&window) != NO_ERROR) { 172 window = Win32Window::GetWindowFromHandle(hwnd); 173 if(!window) { 168 174 dprintf(("PostMessageA, window %x not found", hwnd)); 169 175 return 0; … … 181 187 return PostThreadMessageW(GetCurrentThreadId(), msg, wParam, lParam); 182 188 183 if(HMHandleTranslateToOS2(hwnd, (PULONG)&window) != NO_ERROR) { 189 window = Win32Window::GetWindowFromHandle(hwnd); 190 if(!window) { 184 191 dprintf(("PostMessageW, window %x not found", hwnd)); 185 192 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.