- Timestamp:
- Aug 1, 2002, 6:04:19 PM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/message.cpp
r8629 r8953 1 /* $Id: message.cpp,v 1. 4 2002-06-10 09:12:35sandervl Exp $ */1 /* $Id: message.cpp,v 1.5 2002-08-01 16:04:19 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 320 320 RELEASE_WNDOBJ(window); 321 321 DebugPrintMessage(hwnd, msg, wParam, lParam, FALSE, TRUE); 322 return OSLibPostMessage(hwnd OS2, msg, wParam, lParam, FALSE);322 return OSLibPostMessage(hwnd, hwndOS2, msg, wParam, lParam, FALSE); 323 323 } 324 324 //****************************************************************************** … … 355 355 RELEASE_WNDOBJ(window); 356 356 DebugPrintMessage(hwnd, msg, wParam, lParam, TRUE, TRUE); 357 return OSLibPostMessage(hwnd OS2, msg, wParam, lParam, TRUE);357 return OSLibPostMessage(hwnd, hwndOS2, msg, wParam, lParam, TRUE); 358 358 } 359 359 //****************************************************************************** -
trunk/src/user32/oslibmsg.cpp
r8908 r8953 1 /* $Id: oslibmsg.cpp,v 1. 59 2002-07-23 11:04:18sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.60 2002-08-01 16:04:19 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 611 611 //****************************************************************************** 612 612 //****************************************************************************** 613 BOOL OSLibPostMessage(HWND hwnd , ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode)613 BOOL OSLibPostMessage(HWND hwndWin32, HWND hwndOS2, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode) 614 614 { 615 615 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 616 616 BOOL ret; 617 617 618 if (NULL == packet) 618 619 { … … 623 624 return FALSE; 624 625 } 626 TEB *teb = GetTEBFromThreadId(GetWindowThreadProcessId(hwndWin32, NULL)); 627 625 628 packet->wParam = wParam; 626 629 packet->lParam = lParam; 627 return WinPostMsg(hwnd, WIN32APP_POSTMSG+msg, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet); 630 ret = WinPostMsg(hwndOS2, WIN32APP_POSTMSG+msg, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet); 631 632 if(teb && (teb->o.odin.dwWakeMask & QS_POSTMESSAGE_W)) { 633 //thread is blocked in MsgWaitForMultipleObjects waiting for 634 //posted messages 635 dprintf(("PostMessage: Wake up thread %x which is blocked in MsgWaitForMultipleObjects", teb->o.odin.threadId)); 636 SetEvent(teb->o.odin.hPostMsgEvent); 637 } 638 return ret; 628 639 } 629 640 //****************************************************************************** … … 668 679 return FALSE; 669 680 } 681 682 if(teb->o.odin.dwWakeMask & QS_POSTMESSAGE_W) { 683 //thread is blocked in MsgWaitForMultipleObjects waiting for 684 //posted messages 685 dprintf(("PostMessage: Wake up thread %x which is blocked in MsgWaitForMultipleObjects", teb->o.odin.threadId)); 686 SetEvent(teb->o.odin.hPostMsgEvent); 687 } 688 670 689 SetLastError(ERROR_SUCCESS_W); 671 690 return TRUE; -
trunk/src/user32/oslibmsg.h
r7195 r8953 1 /* $Id: oslibmsg.h,v 1.1 6 2001-10-24 15:41:53sandervl Exp $ */1 /* $Id: oslibmsg.h,v 1.17 2002-08-01 16:04:19 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 43 43 44 44 BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode); 45 BOOL OSLibPostMessage(HWND hwnd , ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode);45 BOOL OSLibPostMessage(HWND hwndWin32, HWND hwndOS2, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode); 46 46 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode); 47 47 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend);
Note:
See TracChangeset
for help on using the changeset viewer.