- Timestamp:
- Jan 8, 2000, 6:08:56 PM (26 years ago)
- Location:
- trunk/src/user32/new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibmsg.cpp
r2335 r2379 1 /* $Id: oslibmsg.cpp,v 1. 9 2000-01-05 21:25:03 cbratschiExp $ */1 /* $Id: oslibmsg.cpp,v 1.10 2000-01-08 17:08:55 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 151 151 APIRET rc; 152 152 153 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, (MPARAM)nExitCode, 0);153 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, MPFROMLONG(nExitCode), 0); 154 154 dprintf(("WinPostQueueMsg %d returned %d", nExitCode, rc)); 155 155 } … … 179 179 memcpy(&thdb->msg, msg, sizeof(MSG)); 180 180 } 181 return (LONG)WinDispatchMsg(thdb->hab, &os2msg); 181 if(os2msg.hwnd || os2msg.msg == WM_QUIT) { 182 return (LONG)WinDispatchMsg(thdb->hab, &os2msg); 183 } 184 //SvL: Don't dispatch messages sent by PostThreadMessage (correct??) 185 return 0; 186 182 187 } 183 188 else {//is this allowed? … … 225 230 while(rc == FALSE); 226 231 227 return rc;232 return (pMsg->message == WINWM_QUIT); 228 233 } 229 234 else … … 236 241 } while (eaten); 237 242 } 238 if(rc) { 239 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, MSG_REMOVE); 240 memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG)); 241 } 243 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, MSG_REMOVE); 244 memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG)); 242 245 return rc; 243 246 } -
trunk/src/user32/new/oslibmsgtranslate.cpp
r2377 r2379 1 /* $Id: oslibmsgtranslate.cpp,v 1. 7 2000-01-08 16:47:46 cbratschiExp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.8 2000-01-08 17:08:56 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 139 139 if (!win32wnd) win32wnd = Win32BaseWindow::GetWindowFromOS2FrameHandle(os2Msg->hwnd); 140 140 //PostThreadMessage posts WIN32APP_POSTMSG msg without window handle 141 if( (win32wnd == 0) && (os2Msg->msg != WM_CREATE) && (os2Msg->msg != WIN32APP_POSTMSG))141 if(win32wnd == 0 && (os2Msg->msg != WM_CREATE && os2Msg->msg != WM_QUIT && os2Msg->msg != WIN32APP_POSTMSG)) 142 142 { 143 143 goto dummymessage; //not a win32 client window … … 147 147 winMsg->pt.y = mapScreenY(os2Msg->ptl.y); 148 148 149 if(win32wnd) //==0 for WM_CREATE 149 if(win32wnd) //==0 for WM_CREATE/WM_QUIT 150 150 winMsg->hwnd = win32wnd->getWindowHandle(); 151 151
Note:
See TracChangeset
for help on using the changeset viewer.