- Timestamp:
- Mar 29, 2000, 7:16:06 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r3101 r3274 1 /* $Id: oslibmsg.cpp,v 1.3 0 2000-03-13 13:10:46 sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.31 2000-03-29 17:16:06 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 25 25 #include "oslibmsg.h" 26 26 #include <winconst.h> 27 #include <win32api.h> 27 28 #include <win32wnd.h> 28 29 #include "oslibutil.h" … … 204 205 THDB *thdb; 205 206 QMSG os2msg; 207 HWND hwndOS2 = 0; 208 209 if(hwnd) { 210 hwndOS2 = Win32BaseWindow::Win32ToOS2Handle(hwnd); 211 if(hwndOS2 == NULL) { 212 memset(pMsg, 0, sizeof(MSG)); 213 dprintf(("GetMsg: window %x NOT FOUND!", hwnd)); 214 SetLastError(ERROR_INVALID_WINDOW_HANDLE_W); 215 return TRUE; 216 } 217 } 206 218 207 219 thdb = GetThreadTHDB(); 208 220 if(thdb == NULL) { 209 221 DebugInt3(); 210 return FALSE;222 return TRUE; 211 223 } 212 224 … … 275 287 THDB *thdb; 276 288 QMSG os2msg; 289 HWND hwndOS2 = 0; 290 291 if(hwnd && hwnd != -1) { 292 hwndOS2 = Win32BaseWindow::Win32ToOS2Handle(hwnd); 293 if(hwndOS2 == NULL) { 294 dprintf(("PeekMsg: window %x NOT FOUND!", hwnd)); 295 SetLastError(ERROR_INVALID_WINDOW_HANDLE_W); 296 return FALSE; 297 } 298 } 277 299 278 300 thdb = GetThreadTHDB(); … … 304 326 do { 305 327 eaten = FALSE; 306 rc = WinPeekMsg(thdb->hab, &os2msg, Win32BaseWindow::OS2ToWin32Handle(hwnd), TranslateWinMsg(uMsgFilterMin, TRUE),328 rc = WinPeekMsg(thdb->hab, &os2msg, hwndOS2, TranslateWinMsg(uMsgFilterMin, TRUE), 307 329 TranslateWinMsg(uMsgFilterMax, FALSE), (fRemove & PM_REMOVE_W) ? PM_REMOVE : PM_NOREMOVE); 308 330 -
trunk/src/user32/windowmsg.cpp
r3209 r3274 1 /* $Id: windowmsg.cpp,v 1.2 0 2000-03-23 23:06:53sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.21 2000-03-29 17:16:06 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 72 72 BOOL fFoundMsg; 73 73 74 fFoundMsg = OSLibWinPeekMsg(msg, 0, uMsgFilterMin, uMsgFilterMax,74 fFoundMsg = OSLibWinPeekMsg(msg, hwndOwner, uMsgFilterMin, uMsgFilterMax, 75 75 fuRemoveMsg, FALSE); 76 76 if(fFoundMsg) { … … 88 88 BOOL fFoundMsg; 89 89 90 fFoundMsg = OSLibWinPeekMsg(msg, 0, uMsgFilterMin, uMsgFilterMax,90 fFoundMsg = OSLibWinPeekMsg(msg, hwndOwner, uMsgFilterMin, uMsgFilterMax, 91 91 fuRemoveMsg, FALSE); 92 92 if(fFoundMsg) {
Note:
See TracChangeset
for help on using the changeset viewer.