- Timestamp:
- Oct 28, 1999, 8:22:31 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r1307 r1495 1 /* $Id: oslibmsg.cpp,v 1. 4 1999-10-15 10:03:14sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.5 1999-10-28 18:22:26 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 37 37 } MSGTRANSTAB, *PMSGTRANSTAB; 38 38 39 #define MAX_MSGTRANSTAB 1 239 #define MAX_MSGTRANSTAB 15 40 40 MSGTRANSTAB MsgTransTab[MAX_MSGTRANSTAB] = { 41 41 0x0000, 0x0000, // WM_NULL, WM_NULL 42 0x0024, 0x0113, // WM_TIMER, WM_TIMER 43 0x0029, 0x0010, // WM_CLOSE, WM_CLOSE 44 0x002a, 0x0012, // WM_QUIT, WM_QUIT 42 45 0x0070, 0x0200, // WM_MOUSEMOVE, WM_MOUSEMOVE 43 46 0x0071, 0x0201, // WM_BUTTON1DOWN, WM_LBUTTONDOWN … … 131 134 void OSLibWinPostQuitMessage(ULONG nExitCode) 132 135 { 133 WinPostQueueMsg(NULLHANDLE, WM_QUIT, (MPARAM)nExitCode, 0); 136 APIRET rc; 137 138 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, (MPARAM)nExitCode, 0); 139 dprintf(("WinPostQueueMsg %d returned %d", nExitCode, rc)); 134 140 } 135 141 //****************************************************************************** … … 137 143 LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode) 138 144 { 145 BOOL eaten = 0; 146 139 147 //TODO: What to do if app changed msg? (translate) 140 148 // WinToOS2MsgTranslate(msg, &qmsg, isUnicode); 149 150 //SvL: Some apps use PeeKMessage(remove) & DispatchMessage instead of 151 // GetMessage/DispatchMessage 152 if (MsgThreadPtr->msg == WM_TIMER) 153 eaten = TIMER_HandleTimer (MsgThreadPtr); 154 155 if(eaten) return 0; 141 156 142 157 return (LONG)WinDispatchMsg(GetThreadHAB(), MsgThreadPtr); -
trunk/src/user32/pmwindow.cpp
r1446 r1495 1 /* $Id: pmwindow.cpp,v 1.4 5 1999-10-25 20:17:20sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.46 1999-10-28 18:22:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 786 786 ULONG id; 787 787 788 dprintf(("OS2: WM_TIMER %x %d", hwnd, mp1)); 788 789 if (TIMER_GetTimerInfo(hwnd,(ULONG)mp1,&sys,&id)) 789 790 { -
trunk/src/user32/user32.cpp
r1418 r1495 1 /* $Id: user32.cpp,v 1.4 7 1999-10-23 16:45:22 cbratschiExp $ */1 /* $Id: user32.cpp,v 1.48 1999-10-28 18:22:28 sandervl Exp $ */ 2 2 3 3 /* … … 1176 1176 } 1177 1177 1178 /* Timer Functions */1179 1180 #if 01181 BOOL WIN32API KillTimer(HWND hWnd, UINT uIDEvent)1182 {1183 #ifdef DEBUG1184 WriteLog("USER32: KillTimer\n");1185 #endif1186 hWnd = Win32Window::Win32ToOS2Handle(hWnd);1187 //WinStopTimer1188 //CB: replace1189 return O32_KillTimer(hWnd,uIDEvent);1190 }1191 //******************************************************************************1192 //******************************************************************************1193 UINT WIN32API SetTimer( HWND hwnd, UINT idTimer, UINT uTimeout, TIMERPROC tmprc)1194 {1195 #ifdef DEBUG1196 WriteLog("USER32: SetTimer INCORRECT CALLING CONVENTION FOR HANDLER!!!!!\n");1197 #endif1198 hwnd = Win32Window::Win32ToOS2Handle(hwnd);1199 //SvL: Write callback handler class for this one1200 //CB: replace1201 return O32_SetTimer(hwnd,idTimer,uTimeout,(TIMERPROC_O32)tmprc);1202 }1203 #endif1204 1205 1178 /* Process and Thread Functions */ 1206 1179 -
trunk/src/user32/windowclass.cpp
r1193 r1495 1 /* $Id: windowclass.cpp,v 1. 2 1999-10-08 16:28:21 sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.3 1999-10-28 18:22:31 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 181 181 wndclass->getClassInfo(&wc); 182 182 memcpy(lpwc, &wc.style, sizeof(WNDCLASSW)); 183 183 return(TRUE); 184 184 } 185 185 return(FALSE); … … 215 215 if(wndclass) { 216 216 wndclass->getClassInfo(lpwcx); 217 lpwcx->cbSize = sizeof(WNDCLASSEXA); 217 218 return(TRUE); 218 219 } … … 256 257 if(wndclass) { 257 258 wndclass->getClassInfo(lpwcx); 259 lpwcx->cbSize = sizeof(WNDCLASSEXW); 258 260 return(TRUE); 259 261 }
Note:
See TracChangeset
for help on using the changeset viewer.