- Timestamp:
- Dec 29, 1999, 1:39:45 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r2202 r2246 1 # $Id: Makefile,v 1.5 2 1999-12-24 21:44:04sandervl Exp $1 # $Id: Makefile,v 1.53 1999-12-29 12:39:43 sandervl Exp $ 2 2 3 3 # … … 129 129 pmframe.obj: pmframe.cpp win32class.h win32wbase.h pmframe.h win32wndchild.h 130 130 win32class.obj: win32class.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\win\winproc.h 131 win32wbase.obj: win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h controls.h winmouse.h $(PDWIN32_INCLUDE)\win\winproc.h $(PDWIN32_INCLUDE)\win\hook.h 131 win32wbase.obj: win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h controls.h winmouse.h $(PDWIN32_INCLUDE)\win\winproc.h $(PDWIN32_INCLUDE)\win\hook.h oslibmsg.h 132 132 win32wbasepos.obj: win32wbasepos.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h 133 133 win32wnd.obj: win32wnd.cpp win32class.h win32wbase.h win32wnd.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h oslibmenu.h -
trunk/src/user32/oslibmsg.cpp
r2208 r2246 1 /* $Id: oslibmsg.cpp,v 1.1 6 1999-12-27 14:41:41sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.17 1999-12-29 12:39:44 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 366 366 //****************************************************************************** 367 367 //****************************************************************************** 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); 377 } 378 //****************************************************************************** 379 //****************************************************************************** 380 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend) 381 { 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) 388 { 389 THDB *thdb = GetTHDBFromThreadId(threadid); 390 391 if(thdb == NULL) { 392 dprintf(("OSLibPostThreadMessage: thread %x not found!", threadid)); 393 return FALSE; 394 } 395 return WinPostQueueMsg(thdb->hmq, msg, (MPARAM)wParam, (MPARAM)lParam); 396 } 397 //****************************************************************************** 398 //****************************************************************************** 399 -
trunk/src/user32/oslibmsg.h
r2208 r2246 1 /* $Id: oslibmsg.h,v 1. 8 1999-12-27 14:41:42sandervl Exp $ */1 /* $Id: oslibmsg.h,v 1.9 1999-12-29 12:39:44 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 42 42 BOOL OSLibWinReplyMessage(ULONG result); 43 43 ULONG OSLibWinQueryQueueStatus(); 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); 48 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend); 44 49 45 50 #define WINWM_NULL 0x0000 -
trunk/src/user32/oslibmsgtranslate.cpp
r2208 r2246 1 /* $Id: oslibmsgtranslate.cpp,v 1. 3 1999-12-27 14:41:42sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.4 1999-12-29 12:39:44 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 112 112 memset(winMsg, 0, sizeof(MSG)); 113 113 win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(os2Msg->hwnd); 114 if((win32wnd == 0 && os2Msg->msg != WM_CREATE)) 114 //PostThreadMessage posts WIN32APP_POSTMSG msg without window handle 115 if((win32wnd == 0 && os2Msg->msg != WM_CREATE && os2Msg->msg != WIN32APP_POSTMSG)) 115 116 { 116 117 goto dummymessage; //not a win32 client window … … 131 132 winMsg->wParam = packet->wParam; 132 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 } 133 137 break; 134 138 } -
trunk/src/user32/oslibwin.cpp
r2221 r2246 1 /* $Id: oslibwin.cpp,v 1.5 4 1999-12-27 22:53:53 cbratschiExp $ */1 /* $Id: oslibwin.cpp,v 1.55 1999-12-29 12:39:44 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 248 248 249 249 return WinQueryWindowULong(hwnd, offset); 250 }251 //******************************************************************************252 //******************************************************************************253 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam)254 {255 return WinPostMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);256 }257 //******************************************************************************258 //******************************************************************************259 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam)260 {261 return (ULONG)WinSendMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);262 }263 //******************************************************************************264 //******************************************************************************265 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend)266 {267 return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam,268 (fSend) ? BMSG_SEND : BMSG_POST);269 250 } 270 251 //****************************************************************************** -
trunk/src/user32/oslibwin.h
r2211 r2246 1 /* $Id: oslibwin.h,v 1. 29 1999-12-27 17:08:08 cbratschiExp $ */1 /* $Id: oslibwin.h,v 1.30 1999-12-29 12:39:44 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 49 49 ULONG OSLibWinGetWindowULong(HWND hwnd, ULONG offset); 50 50 BOOL OSLibSetWindowID(HWND hwnd, ULONG value); 51 52 BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam);53 ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam);54 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend);55 51 56 52 #define WAOS_WARNING 0 -
trunk/src/user32/win32wbase.cpp
r2221 r2246 1 /* $Id: win32wbase.cpp,v 1.12 2 1999-12-27 22:53:53 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.123 1999-12-29 12:39:45 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 28 28 #include "wndmsg.h" 29 29 #include "oslibwin.h" 30 #include "oslibmsg.h" 30 31 #include "oslibutil.h" 31 32 #include "oslibgdi.h" … … 657 658 else 658 659 if (windowClass->getStyle() & CS_PARENTDC) { 659 dprintf((" ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!"));660 dprintf(("WARNING: Class with CS_PARENTDC style!")); 660 661 fParentDC = TRUE; 661 662 ownDC = 0; … … 663 664 else 664 665 if (windowClass->getStyle() & CS_CLASSDC) { 665 dprintf((" ERROR: Class with CS_CLASSDC style -> NOT IMPLEMENTED!"));666 dprintf(("WARNING: Class with CS_CLASSDC style!")); 666 667 ownDC = 0; 667 668 } … … 2154 2155 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 2155 2156 2157 dprintf(("PostThreadMessageA %x %x %x %x", threadid, msg, wParam, lParam)); 2156 2158 packet->Msg = msg; 2157 2159 packet->wParam = wParam; 2158 2160 packet->lParam = lParam; 2159 2161 packet->fUnicode = FALSE; 2160 return O 32_PostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet);2162 return OSLibPostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (LPARAM)packet); 2161 2163 } 2162 2164 //****************************************************************************** … … 2166 2168 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET)); 2167 2169 2170 dprintf(("PostThreadMessageW %x %x %x %x", threadid, msg, wParam, lParam)); 2168 2171 packet->Msg = msg; 2169 2172 packet->wParam = wParam; 2170 2173 packet->lParam = lParam; 2171 2174 packet->fUnicode = TRUE; 2172 return O 32_PostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet);2175 return OSLibPostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (LPARAM)packet); 2173 2176 } 2174 2177 //****************************************************************************** -
trunk/src/user32/windowmsg.cpp
r2208 r2246 1 /* $Id: windowmsg.cpp,v 1.1 3 1999-12-27 14:41:43sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.14 1999-12-29 12:39:45 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 226 226 BOOL WIN32API PostThreadMessageA( DWORD threadid, UINT msg, WPARAM wParam, LPARAM lParam) 227 227 { 228 dprintf(("USER32: PostThreadMessageA\n"));229 228 return Win32BaseWindow::PostThreadMessageA(threadid, msg, wParam, lParam); 230 229 } … … 233 232 BOOL WIN32API PostThreadMessageW( DWORD threadid, UINT msg, WPARAM wParam, LPARAM lParam) 234 233 { 235 dprintf(("USER32: PostThreadMessageW\n"));236 234 return Win32BaseWindow::PostThreadMessageW(threadid, msg, wParam, lParam); 237 235 }
Note:
See TracChangeset
for help on using the changeset viewer.