- Timestamp:
- Dec 29, 1999, 3:37:19 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r2246 r2250 1 /* $Id: oslibmsg.cpp,v 1.1 7 1999-12-29 12:39:44sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.18 1999-12-29 14:37:16 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 124 124 ULONG TranslateWinMsg(ULONG msg, BOOL fMinFilter) 125 125 { 126 POSTMSG_PACKET *packet;127 128 126 if(msg == 0) 129 127 return 0; … … 235 233 } while (eaten); 236 234 } 237 OS2ToWinMsgTranslate((PVOID)thdb, MsgThreadPtr, pMsg, isUnicode );235 OS2ToWinMsgTranslate((PVOID)thdb, MsgThreadPtr, pMsg, isUnicode, MSG_REMOVE); 238 236 return rc; 239 237 } … … 287 285 } 288 286 289 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode );287 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, (fRemove & PM_REMOVE_W) ? MSG_REMOVE : MSG_NOREMOVE); 290 288 //TODO: This is not safe! There's no guarantee this message will be dispatched and it might overwrite a previous message 291 289 if(fRemove & PM_REMOVE_W) { … … 366 364 //****************************************************************************** 367 365 //****************************************************************************** 368 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam)369 { 370 return WinPostMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);371 } 372 //****************************************************************************** 373 //****************************************************************************** 374 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam) 375 { 376 return (ULONG)WinSendMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);366 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode) 367 { 368 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 369 370 packet->Msg = msg; 371 packet->wParam = wParam; 372 packet->lParam = lParam; 373 374 return (ULONG)WinSendMsg(hwnd, WIN32APP_POSTMSG, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet); 377 375 } 378 376 //****************************************************************************** … … 380 378 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend) 381 379 { 382 return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam, 383 (fSend) ? BMSG_SEND : BMSG_POST); 384 } 385 //****************************************************************************** 386 //****************************************************************************** 387 BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam) 380 return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam, 381 (fSend) ? BMSG_SEND : BMSG_POST); 382 } 383 //****************************************************************************** 384 //****************************************************************************** 385 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode) 386 { 387 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 388 389 packet->Msg = msg; 390 packet->wParam = wParam; 391 packet->lParam = lParam; 392 return WinPostMsg(hwnd, WIN32APP_POSTMSG, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet); 393 } 394 //****************************************************************************** 395 //****************************************************************************** 396 BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode) 388 397 { 389 398 THDB *thdb = GetTHDBFromThreadId(threadid); 399 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 390 400 391 401 if(thdb == NULL) { … … 393 403 return FALSE; 394 404 } 395 return WinPostQueueMsg(thdb->hmq, msg, (MPARAM)wParam, (MPARAM)lParam); 396 } 397 //****************************************************************************** 398 //****************************************************************************** 399 405 dprintf(("PostThreadMessageA %x %x %x %x", threadid, msg, wParam, lParam)); 406 packet->Msg = msg; 407 packet->wParam = wParam; 408 packet->lParam = lParam; 409 return WinPostQueueMsg(thdb->hmq, WIN32APP_POSTMSG, (MPARAM)((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (MPARAM)packet); 410 } 411 //****************************************************************************** 412 //****************************************************************************** 413 -
trunk/src/user32/oslibmsg.h
r2246 r2250 1 /* $Id: oslibmsg.h,v 1. 9 1999-12-29 12:39:44sandervl Exp $ */1 /* $Id: oslibmsg.h,v 1.10 1999-12-29 14:37:16 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 15 15 ULONG TranslateWinMsg(ULONG msg); 16 16 17 #define ODINMSG_NOEXTRAMSGS018 #define ODINMSG_EXTRAMSGS117 #define MSG_NOREMOVE 0 18 #define MSG_REMOVE 1 19 19 20 20 #ifdef OS2DEF_INCLUDED 21 BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL f TranslateExtraMsgs = ODINMSG_EXTRAMSGS);21 BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL fMsgRemoved); 22 22 void WinToOS2MsgTranslate(MSG *winMsg, QMSG *os2Msg, BOOL isUnicode); 23 23 … … 43 43 ULONG OSLibWinQueryQueueStatus(); 44 44 45 BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam );46 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam );47 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam );45 BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode); 46 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode); 47 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam, BOOL fUnicode); 48 48 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend); 49 49 -
trunk/src/user32/oslibmsgtranslate.cpp
r2246 r2250 1 /* $Id: oslibmsgtranslate.cpp,v 1. 4 1999-12-29 12:39:44sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.5 1999-12-29 14:37:16 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 102 102 //****************************************************************************** 103 103 //****************************************************************************** 104 BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL f TranslateExtraMsgs)104 BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL fMsgRemoved) 105 105 { 106 106 Win32BaseWindow *win32wnd = 0; … … 128 128 { 129 129 packet = (POSTMSG_PACKET *)os2Msg->mp2; 130 if(packet && ( ULONG)os2Msg->mp1 == WIN32PM_MAGIC) {130 if(packet && ((ULONG)os2Msg->mp1 == WIN32MSG_MAGICA || (ULONG)os2Msg->mp1 == WIN32MSG_MAGICW)) { 131 131 winMsg->message = packet->Msg; 132 132 winMsg->wParam = packet->wParam; 133 133 winMsg->lParam = packet->lParam; 134 if(win32wnd == NULL) { 135 free(packet); //messages posted by PostThreadMessage are never dispatched, so free the memory here 136 } 134 if(fMsgRemoved == MSG_REMOVE) free(packet); //free the shared memory here 137 135 break; 138 136 } -
trunk/src/user32/pmwindow.cpp
r2214 r2250 1 /* $Id: pmwindow.cpp,v 1.7 2 1999-12-27 18:43:42sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.73 1999-12-29 14:37:16 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 167 167 qmsg.reserved = 0; 168 168 169 if(OS2ToWinMsgTranslate((PVOID)thdb, &qmsg, &winMsg, FALSE, ODINMSG_NOEXTRAMSGS) == FALSE)169 if(OS2ToWinMsgTranslate((PVOID)thdb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE) 170 170 {//message was not translated 171 171 memset(&winMsg, 0, sizeof(MSG)); … … 178 178 } 179 179 180 if(msg == WIN32APP_POSTMSG && (ULONG)mp1 == WIN32PM_MAGIC) { 181 //win32 app user message 182 return (MRESULT)win32wnd->PostMessage((POSTMSG_PACKET *)mp2); 180 if(msg == WIN32APP_POSTMSG) { 181 //probably win32 app user message 182 if((ULONG)mp1 == WIN32MSG_MAGICA) { 183 return (MRESULT)win32wnd->DispatchMsgA(pWinMsg); 184 } 185 else 186 if((ULONG)mp1 == WIN32MSG_MAGICW) { 187 return (MRESULT)win32wnd->DispatchMsgW(pWinMsg); 188 } 183 189 } 184 190 switch( msg ) … … 403 409 case WM_COMMAND: 404 410 dprintf(("OS2: WM_COMMAND %x %x %x", hwnd, mp1, mp2)); 405 win32wnd->DispatchMsg (pWinMsg);411 win32wnd->DispatchMsgA(pWinMsg); 406 412 break; 407 413 408 414 case WM_SYSCOMMAND: 409 win32wnd->DispatchMsg (pWinMsg);415 win32wnd->DispatchMsgA(pWinMsg); 410 416 break; 411 417 412 418 case WM_CHAR: 413 win32wnd->DispatchMsg (pWinMsg);419 win32wnd->DispatchMsgA(pWinMsg); 414 420 break; 415 421 … … 419 425 420 426 case WM_TIMER: 421 win32wnd->DispatchMsg (pWinMsg);427 win32wnd->DispatchMsgA(pWinMsg); 422 428 goto RunDefWndProc; 423 429 … … 461 467 462 468 case WM_PAINT: 463 win32wnd->DispatchMsg (pWinMsg);469 win32wnd->DispatchMsgA(pWinMsg); 464 470 goto RunDefWndProc; 465 471 … … 488 494 case WM_CONTEXTMENU: 489 495 { 490 win32wnd->DispatchMsg (pWinMsg);496 win32wnd->DispatchMsgA(pWinMsg); 491 497 492 498 RestoreOS2TIB(); -
trunk/src/user32/win32dlg.cpp
r2200 r2250 1 /* $Id: win32dlg.cpp,v 1.3 8 1999-12-24 18:39:11sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.39 1999-12-29 14:37:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 806 806 807 807 case WM_CLOSE: 808 PostMessageA( WM_COMMAND, IDCANCEL, (LPARAM)GetDlgItem( getWindowHandle(), IDCANCEL ) );808 PostMessageA(getWindowHandle(), WM_COMMAND, IDCANCEL, (LPARAM)GetDlgItem( getWindowHandle(), IDCANCEL ) ); 809 809 return 0; 810 810 -
trunk/src/user32/win32wbase.cpp
r2246 r2250 1 /* $Id: win32wbase.cpp,v 1.12 3 1999-12-29 12:39:45sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.124 1999-12-29 14:37:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 923 923 //****************************************************************************** 924 924 //****************************************************************************** 925 ULONG Win32BaseWindow::DispatchMsg (MSG *msg)925 ULONG Win32BaseWindow::DispatchMsgA(MSG *msg) 926 926 { 927 927 return SendInternalMessageA(msg->message, msg->wParam, msg->lParam); 928 } 929 //****************************************************************************** 930 //****************************************************************************** 931 ULONG Win32BaseWindow::DispatchMsgW(MSG *msg) 932 { 933 return SendInternalMessageW(msg->message, msg->wParam, msg->lParam); 928 934 } 929 935 //****************************************************************************** … … 1818 1824 Win32BaseWindow *window = GetTopParent(); 1819 1825 if(window && !(window->getClass()->getStyle() & CS_NOCLOSE)) 1820 window->PostMessageA(WM_SYSCOMMAND, SC_CLOSE, 0);1826 PostMessageA(getWindowHandle(), WM_SYSCOMMAND, SC_CLOSE, 0); 1821 1827 } 1822 1828 … … 1977 1983 LRESULT Win32BaseWindow::SendMessageA(ULONG Msg, WPARAM wParam, LPARAM lParam) 1978 1984 { 1979 POSTMSG_PACKET *packet;1980 1981 1985 //if the destination window is created by this process & thread, call window proc directly 1982 1986 if(dwProcessId == currentProcessId && dwThreadId == GetCurrentThreadId()) { … … 1984 1988 } 1985 1989 //otherwise use WinSendMsg to send it to the right process/thread 1986 packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 1987 packet->Msg = Msg; 1988 packet->wParam = wParam; 1989 packet->lParam = lParam; 1990 packet->fUnicode = FALSE; 1991 return OSLibSendMessage(getOS2WindowHandle(), WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet); 1990 return OSLibSendMessage(getOS2WindowHandle(), Msg, wParam, lParam, FALSE); 1992 1991 } 1993 1992 //****************************************************************************** … … 1995 1994 LRESULT Win32BaseWindow::SendMessageW(ULONG Msg, WPARAM wParam, LPARAM lParam) 1996 1995 { 1997 POSTMSG_PACKET *packet;1998 1999 1996 //if the destination window is created by this process & thread, call window proc directly 2000 1997 if(dwProcessId == currentProcessId && dwThreadId == GetCurrentThreadId()) { … … 2002 1999 } 2003 2000 //otherwise use WinSendMsg to send it to the right process/thread 2004 packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 2005 packet->Msg = Msg; 2006 packet->wParam = wParam; 2007 packet->lParam = lParam; 2008 packet->fUnicode = TRUE; 2009 return OSLibSendMessage(getOS2WindowHandle(), WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet); 2001 return OSLibSendMessage(getOS2WindowHandle(), Msg, wParam, lParam, TRUE); 2010 2002 } 2011 2003 //****************************************************************************** … … 2127 2119 //****************************************************************************** 2128 2120 //****************************************************************************** 2129 BOOL Win32BaseWindow::PostMessageA(ULONG msg, WPARAM wParam, LPARAM lParam)2130 {2131 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));2132 2133 packet->Msg = msg;2134 packet->wParam = wParam;2135 packet->lParam = lParam;2136 packet->fUnicode = FALSE;2137 return OSLibPostMessage(OS2Hwnd, WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet);2138 }2139 //******************************************************************************2140 //******************************************************************************2141 BOOL Win32BaseWindow::PostMessageW(ULONG msg, WPARAM wParam, LPARAM lParam)2142 {2143 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));2144 2145 packet->Msg = msg;2146 packet->wParam = wParam;2147 packet->lParam = lParam;2148 packet->fUnicode = TRUE;2149 return OSLibPostMessage(OS2Hwnd, WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet);2150 }2151 //******************************************************************************2152 //******************************************************************************2153 BOOL Win32BaseWindow::PostThreadMessageA(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam)2154 {2155 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));2156 2157 dprintf(("PostThreadMessageA %x %x %x %x", threadid, msg, wParam, lParam));2158 packet->Msg = msg;2159 packet->wParam = wParam;2160 packet->lParam = lParam;2161 packet->fUnicode = FALSE;2162 return OSLibPostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (LPARAM)packet);2163 }2164 //******************************************************************************2165 //******************************************************************************2166 BOOL Win32BaseWindow::PostThreadMessageW(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam)2167 {2168 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));2169 2170 dprintf(("PostThreadMessageW %x %x %x %x", threadid, msg, wParam, lParam));2171 packet->Msg = msg;2172 packet->wParam = wParam;2173 packet->lParam = lParam;2174 packet->fUnicode = TRUE;2175 return OSLibPostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (LPARAM)packet);2176 }2177 //******************************************************************************2178 //******************************************************************************2179 ULONG Win32BaseWindow::PostMessage(POSTMSG_PACKET *packet)2180 {2181 ULONG rc;2182 2183 if(packet == NULL)2184 return 0;2185 2186 if(packet->fUnicode) {2187 rc = SendInternalMessageW(packet->Msg, packet->wParam, packet->lParam);2188 }2189 else rc = SendInternalMessageA(packet->Msg, packet->wParam, packet->lParam);2190 2191 free(packet);2192 return rc;2193 }2194 2121 //****************************************************************************** 2195 2122 //TODO: Do this more efficiently … … 2211 2138 window->SendInternalMessageA(msg, wParam, lParam); 2212 2139 } 2213 else window->PostMessageA(msg, wParam, lParam);2140 else PostMessageA(window->getWindowHandle(), msg, wParam, lParam); 2214 2141 } 2215 2142 } … … 2224 2151 Win32BaseWindow *window; 2225 2152 HWND hwnd = WNDHANDLE_MAGIC_HIGHWORD; 2226 2227 2153 2228 2154 dprintf(("BroadCastMessageW %x %x %x", msg, wParam, lParam)); … … 2237 2163 window->SendInternalMessageW(msg, wParam, lParam); 2238 2164 } 2239 else window->PostMessageW(msg, wParam, lParam);2165 else PostMessageW(window->getWindowHandle(), msg, wParam, lParam); 2240 2166 } 2241 2167 } -
trunk/src/user32/win32wbase.h
r2204 r2250 1 /* $Id: win32wbase.h,v 1.5 8 1999-12-26 17:30:19 cbratschiExp $ */1 /* $Id: win32wbase.h,v 1.59 1999-12-29 14:37:18 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 41 41 #define WIN32APP_USERMSGBASE 0x1000 42 42 #define WIN32APP_POSTMSG 0x1000 43 #define WIN32MSG_MAGICA 0x12345678 44 #define WIN32MSG_MAGICW 0x12345679 43 45 44 46 typedef struct … … 47 49 ULONG wParam; 48 50 ULONG lParam; 49 ULONG fUnicode;50 51 } POSTMSG_PACKET; 51 52 … … 82 83 ULONG MsgHitTest(MSG *msg); 83 84 ULONG MsgNCPaint(); 84 ULONG DispatchMsg(MSG *msg); 85 ULONG DispatchMsgA(MSG *msg); 86 ULONG DispatchMsgW(MSG *msg); 85 87 86 88 ULONG MsgSetText(LPSTR lpsz, LONG cch); … … 205 207 LRESULT SendMessageA(ULONG msg, WPARAM wParam, LPARAM lParam); 206 208 LRESULT SendMessageW(ULONG msg, WPARAM wParam, LPARAM lParam); 207 BOOL PostMessageA(ULONG msg, WPARAM wParam, LPARAM lParam);208 BOOL PostMessageW(ULONG msg, WPARAM wParam, LPARAM lParam);209 ULONG PostMessage(POSTMSG_PACKET *packet);210 static BOOL PostThreadMessageA(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam);211 static BOOL PostThreadMessageW(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam);212 209 static LRESULT BroadcastMessageA(int type, UINT msg, WPARAM wParam, LPARAM lParam); 213 210 static LRESULT BroadcastMessageW(int type, UINT msg, WPARAM wParam, LPARAM lParam); -
trunk/src/user32/win32wmdichild.cpp
r2185 r2250 1 /* $Id: win32wmdichild.cpp,v 1.1 6 1999-12-21 17:03:45 cbratschiExp $ */1 /* $Id: win32wmdichild.cpp,v 1.17 1999-12-29 14:37:18 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Child Window Class for OS/2 … … 112 112 case WM_MENUCHAR: 113 113 /* MDI children don't have menu bars */ 114 client->PostMessageA(WM_SYSCOMMAND, (WPARAM)SC_KEYMENU, (LPARAM)LOWORD(wParam) );114 PostMessageA(client->getWindowHandle(), WM_SYSCOMMAND, (WPARAM)SC_KEYMENU, (LPARAM)LOWORD(wParam) ); 115 115 return 0x00010000L; 116 116 -
trunk/src/user32/win32wmdiclient.cpp
r2189 r2250 1 /* $Id: win32wmdiclient.cpp,v 1.1 8 1999-12-22 18:09:32 cbratschiExp $ */1 /* $Id: win32wmdiclient.cpp,v 1.19 1999-12-29 14:37:18 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 1226 1226 { 1227 1227 mdiFlags |= MDIF_NEEDUPDATE; 1228 PostMessageA( WM_MDICALCCHILDSCROLL, 0, 0);1228 PostMessageA(getWindowHandle(), WM_MDICALCCHILDSCROLL, 0, 0); 1229 1229 } 1230 1230 sbRecalc = recalc; -
trunk/src/user32/windowmsg.cpp
r2246 r2250 1 /* $Id: windowmsg.cpp,v 1.1 4 1999-12-29 12:39:45sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.15 1999-12-29 14:37:19 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 175 175 } 176 176 dprintf(("PostMessageA, %x %x %x %x", hwnd, msg, wParam, lParam)); 177 return window->PostMessageA(msg, wParam, lParam);177 return OSLibPostMessage(window->getOS2WindowHandle(), msg, wParam, lParam, FALSE); 178 178 } 179 179 //****************************************************************************** … … 198 198 } 199 199 dprintf(("PostMessageW, %x %x %x %x", hwnd, msg, wParam, lParam)); 200 return window->PostMessageW(msg, wParam, lParam); 200 return OSLibPostMessage(window->getOS2WindowHandle(), msg, wParam, lParam, TRUE); 201 } 202 //****************************************************************************** 203 //****************************************************************************** 204 BOOL WIN32API PostThreadMessageA( DWORD threadid, UINT msg, WPARAM wParam, LPARAM lParam) 205 { 206 return OSLibPostThreadMessage(threadid, msg, wParam, lParam, FALSE); 207 } 208 //****************************************************************************** 209 //****************************************************************************** 210 BOOL WIN32API PostThreadMessageW( DWORD threadid, UINT msg, WPARAM wParam, LPARAM lParam) 211 { 212 return OSLibPostThreadMessage(threadid, msg, wParam, lParam, TRUE); 201 213 } 202 214 //****************************************************************************** … … 221 233 dprintf(("USER32: ReplyMessage %x", result)); 222 234 return OSLibWinReplyMessage(result); 223 }224 //******************************************************************************225 //******************************************************************************226 BOOL WIN32API PostThreadMessageA( DWORD threadid, UINT msg, WPARAM wParam, LPARAM lParam)227 {228 return Win32BaseWindow::PostThreadMessageA(threadid, msg, wParam, lParam);229 }230 //******************************************************************************231 //******************************************************************************232 BOOL WIN32API PostThreadMessageW( DWORD threadid, UINT msg, WPARAM wParam, LPARAM lParam)233 {234 return Win32BaseWindow::PostThreadMessageW(threadid, msg, wParam, lParam);235 235 } 236 236 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.