- Timestamp:
- Jan 11, 2000, 12:29:16 AM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 1 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/loadres.cpp
r2309 r2400 1 /* $Id: loadres.cpp,v 1.1 4 2000-01-03 20:53:49 cbratschiExp $ */1 /* $Id: loadres.cpp,v 1.15 2000-01-10 23:29:12 sandervl Exp $ */ 2 2 3 3 /* … … 232 232 } 233 233 //****************************************************************************** 234 //****************************************************************************** 235 BOOL IsSystemBitmap(ULONG id) 236 { 237 switch(id) 238 { 239 case OBM_UPARROW: 240 case OBM_DNARROW: 241 case OBM_RGARROW: 242 case OBM_LFARROW: 243 case OBM_RESTORE: 244 case OBM_RESTORED: 245 case OBM_UPARROWD: 246 case OBM_DNARROWD: 247 case OBM_RGARROWD: 248 case OBM_LFARROWD: 249 case OBM_OLD_UPARROW: 250 case OBM_OLD_DNARROW: 251 case OBM_OLD_RGARROW: 252 case OBM_OLD_LFARROW: 253 case OBM_CHECK: 254 case OBM_CHECKBOXES: 255 case OBM_BTNCORNERS: 256 case OBM_COMBO: 257 case OBM_REDUCE: 258 case OBM_REDUCED: 259 case OBM_ZOOM: 260 case OBM_ZOOMD: 261 case OBM_SIZE: 262 case OBM_CLOSE: 263 case OBM_MNARROW: 264 case OBM_UPARROWI: 265 case OBM_DNARROWI: 266 case OBM_RGARROWI: 267 case OBM_LFARROWI: 268 case OBM_CLOSED: 269 case OBM_OLD_CLOSE: 270 case OBM_BTSIZE: 271 case OBM_OLD_REDUCE: 272 case OBM_OLD_ZOOM: 273 case OBM_OLD_RESTORE: 274 return TRUE; 275 276 default: 277 return FALSE; 278 } 279 } 280 //****************************************************************************** 234 281 //NOTE: LR_CREATEDIBSECTION flag doesn't work (crash in GDI32)! 235 282 //****************************************************************************** … … 324 371 //TODO: No support for RT_NEWBITMAP 325 372 //****************************************************************************** 373 //****************************************************************************** 374 //TODO: No support for RT_NEWBITMAP 375 //****************************************************************************** 326 376 HBITMAP WIN32API LoadBitmapA(HINSTANCE hinst, LPCSTR lpszBitmap) 327 377 { 328 378 HBITMAP hBitmap = 0; 329 379 330 return LoadBitmapA((hinst == 0) ? hInstanceUser32:hinst,lpszBitmap,0,0,0); 380 if (!hinst) 381 { 382 if(IsSystemBitmap((ULONG)lpszBitmap)) 383 { 384 hBitmap = LoadBitmapA(hInstanceUser32, lpszBitmap, 0, 0, 0); 385 } 386 } 387 if(!hBitmap) 388 hBitmap = LoadBitmapA(hinst, lpszBitmap, 0, 0, 0); 389 331 390 dprintf(("LoadBitmapA returned %08xh\n", hBitmap)); 332 391 -
trunk/src/user32/new/oslibmsg.cpp
r2381 r2400 1 /* $Id: oslibmsg.cpp,v 1.1 1 2000-01-09 14:14:22 cbratschiExp $ */1 /* $Id: oslibmsg.cpp,v 1.12 2000-01-10 23:29:12 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 183 183 } 184 184 //SvL: Don't dispatch messages sent by PostThreadMessage (correct??) 185 // Or WM_TIMER msgs with no window handle or timer proc 185 186 return 0; 186 187 … … 219 220 MsgThreadPtr->msg = 0; 220 221 MsgThreadPtr->hwnd = 0; 221 return TRUE;222 return (pMsg->message == WINWM_QUIT); 222 223 } 223 224 … … 230 231 while(rc == FALSE); 231 232 232 return (pMsg->message == WINWM_QUIT);233 return (pMsg->message == WINWM_QUIT); 233 234 } 234 235 else -
trunk/src/user32/new/oslibmsgtranslate.cpp
r2381 r2400 1 /* $Id: oslibmsgtranslate.cpp,v 1. 9 2000-01-09 14:14:23 cbratschiExp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.10 2000-01-10 23:29:12 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 133 133 POSTMSG_PACKET *packet; 134 134 THDB *thdb = (THDB *)pThdb; 135 ULONG hittest; 135 136 int i; 136 137 … … 138 139 win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(os2Msg->hwnd); 139 140 if (!win32wnd) win32wnd = Win32BaseWindow::GetWindowFromOS2FrameHandle(os2Msg->hwnd); 141 140 142 //PostThreadMessage posts WIN32APP_POSTMSG msg without window handle 141 if(win32wnd == 0 && (os2Msg->msg != WM_CREATE && os2Msg->msg != WM_QUIT && os2Msg->msg != WIN32APP_POSTMSG)) 143 //Realplayer starts a timer with hwnd 0 & proc 0; check this here 144 if(win32wnd == 0 && (os2Msg->msg != WM_CREATE && os2Msg->msg != WM_QUIT && os2Msg->msg != WM_TIMER && os2Msg->msg != WIN32APP_POSTMSG)) 142 145 { 143 146 goto dummymessage; //not a win32 client window … … 167 170 case WM_BUTTON3DBLCLK: 168 171 //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window 172 173 hittest = win32wnd->MsgHitTest(winMsg->pt.x, winMsg->pt.y); 174 169 175 if (IsNCMouseMsg(win32wnd)) { 170 176 winMsg->message = WINWM_NCLBUTTONDOWN + (os2Msg->msg - WM_BUTTON1DOWN); 171 winMsg->wParam = win32wnd->lastHitTestVal;177 winMsg->wParam = hittest; 172 178 winMsg->lParam = MAKELONG(winMsg->pt.x, winMsg->pt.y); //screen coordinates 173 179 } … … 199 205 { 200 206 //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window 201 if(IsNCMouseMsg(win32wnd)) 207 hittest = win32wnd->MsgHitTest(winMsg->pt.x, winMsg->pt.y); 208 209 if (IsNCMouseMsg(win32wnd)) 202 210 { 203 211 winMsg->message = WINWM_NCMOUSEMOVE; 204 winMsg->wParam = (WPARAM) win32wnd->lastHitTestVal;212 winMsg->wParam = (WPARAM)hittest; 205 213 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y); 206 } else 214 } 215 else 207 216 { 208 217 winMsg->message = WINWM_MOUSEMOVE; … … 220 229 } 221 230 222 case WM_ HITTEST:231 case WM_ACTIVATE: 223 232 { 224 winMsg->message = WINWM_NCHITTEST; 225 winMsg->wParam = 0; 226 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y); 227 return TRUE; 233 winMsg->message = WINWM_NCACTIVATE; 234 winMsg->wParam = SHORT1FROMMP(os2Msg->mp1); 235 return TRUE; 228 236 } 237 229 238 } 230 239 //do normal translation for all other messages … … 346 355 case WM_BUTTON3DBLCLK: 347 356 //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window 357 hittest = win32wnd->MsgHitTest(winMsg->pt.x, winMsg->pt.y); 358 348 359 if(IsNCMouseMsg(win32wnd)) { 349 360 winMsg->message = WINWM_NCLBUTTONDOWN + (os2Msg->msg - WM_BUTTON1DOWN); 350 winMsg->wParam = win32wnd->lastHitTestVal;361 winMsg->wParam = hittest; 351 362 winMsg->lParam = MAKELONG(winMsg->pt.x, winMsg->pt.y); //screen coordinates 352 363 } … … 378 389 { 379 390 //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window 391 hittest = win32wnd->MsgHitTest(winMsg->pt.x, winMsg->pt.y); 392 380 393 if(IsNCMouseMsg(win32wnd)) 381 394 { 382 395 winMsg->message = WINWM_NCMOUSEMOVE; 383 winMsg->wParam = (WPARAM) win32wnd->lastHitTestVal;396 winMsg->wParam = (WPARAM)hittest; 384 397 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y); 385 398 } else … … 578 591 579 592 if(wndParams->fsStatus & WPM_TEXT) { 580 win32wnd->MsgSetText(wndParams->pszText, wndParams->cchText); 593 winMsg->message = WINWM_SETTEXT; 594 winMsg->lParam = (LPARAM)wndParams->pszText; 581 595 break; 582 596 } … … 612 626 } 613 627 else winMsg->message = WINWM_PAINT; 614 break;615 }616 617 case WM_HITTEST:618 {619 winMsg->message = WINWM_NCHITTEST;620 winMsg->wParam = 0;621 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y);622 628 break; 623 629 } -
trunk/src/user32/new/pmframe.cpp
r2381 r2400 1 /* $Id: pmframe.cpp,v 1. 9 2000-01-09 14:14:23 cbratschiExp $ */1 /* $Id: pmframe.cpp,v 1.10 2000-01-10 23:29:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 193 193 } 194 194 195 case WM_HITTEST:196 {197 DWORD res;198 199 // Only send this message if the window is enabled200 if (!win32wnd->IsWindowCreated())201 res = HT_NORMAL;202 else if (!WinIsWindowEnabled(hwnd))203 res = HT_ERROR;204 else if (win32wnd->getIgnoreHitTest())205 res = HT_NORMAL;206 else207 {208 dprintf(("PMFRAME: WM_HITTEST %x (%d,%d)",hwnd,(*(POINTS *)&mp1).x,(*(POINTS *)&mp1).y));209 210 //CB: WinWindowFromPoint: PM sends WM_HITTEST -> loop -> stack overflow211 win32wnd->setIgnoreHitTest(TRUE);212 res = win32wnd->MsgHitTest(pWinMsg);213 win32wnd->setIgnoreHitTest(FALSE);214 }215 RestoreOS2TIB();216 return (MRESULT)res;217 }218 219 195 case WM_PAINT: 220 196 { … … 383 359 if (topOwner) WinSetWindowPos(topOwner->getOS2FrameWindowHandle(),hwnd,0,0,0,0,SWP_ZORDER); 384 360 } 385 } else 361 } 362 else 386 363 { 387 364 WinSetWindowUShort(hwnd,QWS_FLAGS,mp1 ? (flags | FF_ACTIVE):(flags & ~FF_ACTIVE)); 388 365 } 366 if(win32wnd->IsWindowCreated()) 367 win32wnd->DispatchMsgA(pWinMsg); 389 368 390 369 RestoreOS2TIB(); -
trunk/src/user32/new/pmwindow.cpp
r2335 r2400 1 /* $Id: pmwindow.cpp,v 1.3 3 2000-01-05 21:25:05 cbratschiExp $ */1 /* $Id: pmwindow.cpp,v 1.34 2000-01-10 23:29:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 91 91 (PSZ)WIN32_STDCLASS, /* Window class name */ 92 92 (PFNWP)Win32WindowProc, /* Address of window procedure */ 93 CS_HITTEST,93 0, 94 94 NROF_WIN32WNDBYTES)) { 95 95 dprintf(("WinRegisterClass Win32BaseWindow failed")); … … 100 100 (PSZ)WIN32_STDCLASS2, /* Window class name */ 101 101 (PFNWP)Win32WindowProc, /* Address of window procedure */ 102 CS_ HITTEST | CS_SAVEBITS,102 CS_SAVEBITS, 103 103 NROF_WIN32WNDBYTES)) { 104 104 dprintf(("WinRegisterClass Win32BaseWindow failed")); … … 414 414 win32wnd->DispatchMsgA(pWinMsg); 415 415 goto RunDefWndProc; 416 417 case WM_HITTEST:418 {419 DWORD res;420 421 // Only send this message if the window is enabled422 if (!WinIsWindowEnabled(hwnd))423 res = HT_ERROR;424 else if (win32wnd->getIgnoreHitTest())425 res = HT_NORMAL;426 else427 {428 dprintf(("USER32: WM_HITTEST %x (%d,%d)",hwnd,(*(POINTS *)&mp1).x,(*(POINTS *)&mp1).y));429 430 //CB: WinWindowFromPoint: PM sends WM_HITTEST -> loop -> stack overflow431 win32wnd->setIgnoreHitTest(TRUE);432 res = win32wnd->MsgHitTest(pWinMsg);433 win32wnd->setIgnoreHitTest(FALSE);434 }435 RestoreOS2TIB();436 return (MRESULT)res;437 }438 416 439 417 case WM_CONTEXTMENU: -
trunk/src/user32/new/timer.cpp
r2290 r2400 1 /* $Id: timer.cpp,v 1. 1 2000-01-01 14:57:24 cbratschiExp $ */1 /* $Id: timer.cpp,v 1.2 2000-01-10 23:29:13 sandervl Exp $ */ 2 2 3 3 /* … … 99 99 return (FALSE); /* forward message */ 100 100 101 if (!WinInSendMsg (GetThreadHAB())) 101 if (!WinInSendMsg (GetThreadHAB())) { 102 dprintf2(("TIMER_HandleTimer %x %x %x", pTimer->hwnd, pTimer->id, pMsg->time)); 102 103 pTimer->proc (pTimer->hwnd, (pTimer->inUse == TIMER::SystemTimer) ? WM_SYSTIMER_W:WM_TIMER_W, pTimer->id, pMsg->time); 103 104 } 104 105 return (TRUE); 105 106 } … … 221 222 UINT rc; 222 223 223 dprintf(("USER32: SetTimer % 04x %d %d %08lx", hwnd, id, timeout, (LONG)proc));224 dprintf(("USER32: SetTimer %x %d %d %08lx", hwnd, id, timeout, (LONG)proc)); 224 225 225 226 rc = TIMER_SetTimer (hwnd, id, timeout, proc, FALSE); … … 247 248 BOOL rc; 248 249 249 dprintf(("USER32: KillTimer % 04x %d", hwnd, id));250 dprintf(("USER32: KillTimer %x %d", hwnd, id)); 250 251 251 252 rc = TIMER_KillTimer (hwnd, id, FALSE); … … 260 261 BOOL rc; 261 262 262 dprintf(("USER32: KillSystemTimer % 04x %d", hwnd, id));263 dprintf(("USER32: KillSystemTimer %x %d", hwnd, id)); 263 264 264 265 rc = TIMER_KillTimer (hwnd, id, TRUE); -
trunk/src/user32/new/win32wbase.cpp
r2396 r2400 1 /* $Id: win32wbase.cpp,v 1.2 8 2000-01-10 17:18:09 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.29 2000-01-10 23:29:14 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 217 217 isIcon = FALSE; 218 218 lastHitTestVal = HTOS_NORMAL; 219 fIgnoreHitTest = FALSE;220 219 owner = NULL; 221 220 windowClass = 0; … … 879 878 //****************************************************************************** 880 879 //****************************************************************************** 881 ULONG Win32BaseWindow::MsgHitTest(MSG *msg) 882 { 883 lastHitTestVal = SendInternalMessageA(WM_NCHITTEST,msg->wParam,msg->lParam); 884 dprintf2(("MsgHitTest returned %x", lastHitTestVal)); 885 886 if (lastHitTestVal == HTERROR) 887 return HTOS_ERROR; 888 889 #if 0 //CB: problems with groupboxes, internal handling is better 890 if (lastHitTestVal == HTTRANSPARENT) 891 return HTOS_TRANSPARENT; 892 #endif 893 894 return HTOS_NORMAL; 880 ULONG Win32BaseWindow::MsgHitTest(ULONG x, ULONG y) 881 { 882 lastHitTestVal = SendInternalMessageA(WM_NCHITTEST, 0, MAKELONG((USHORT)x, (USHORT)y)); 883 dprintf2(("MsgHitTest (%d,%d) (%d,%d) (%d,%d) returned %x", x, y, rectWindow.left, rectWindow.right, rectWindow.top, rectWindow.bottom, lastHitTestVal)); 884 return lastHitTestVal; 895 885 } 896 886 //****************************************************************************** … … 3093 3083 window = parentwindow; 3094 3084 } 3085 } 3086 //****************************************************************************** 3087 //****************************************************************************** 3088 HMENU Win32BaseWindow::GetSystemMenu(BOOL fRevert) 3089 { 3090 if(fRevert == FALSE) 3091 { 3092 if(hSysMenu) { 3093 DestroyMenu(hSysMenu); 3094 } 3095 hSysMenu = LoadMenuA(GetModuleHandleA("USER32"), (LPCSTR)"SYSMENU"); 3096 return hSysMenu; 3097 } 3098 else {//revert back to default system menu 3099 if(hSysMenu) { 3100 DestroyMenu(hSysMenu); 3101 hSysMenu = 0; 3102 } 3103 return 0; 3104 } 3095 3105 } 3096 3106 //****************************************************************************** … … 3767 3777 //****************************************************************************** 3768 3778 //****************************************************************************** 3769 BOOL Win32BaseWindow::GetWindowRect(PRECT pRect)3770 {3771 return OSLibWinQueryWindowRect(OS2HwndFrame, pRect, RELATIVE_TO_SCREEN);3772 }3773 //******************************************************************************3774 //******************************************************************************3775 3779 BOOL Win32BaseWindow::hasWindowName(LPSTR wndname, BOOL fUnicode) 3776 3780 { -
trunk/src/user32/new/win32wbase.h
r2396 r2400 1 /* $Id: win32wbase.h,v 1.2 1 2000-01-10 17:18:10 cbratschiExp $ */1 /* $Id: win32wbase.h,v 1.22 2000-01-10 23:29:15 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 84 84 ULONG MsgEraseBackGround(HDC hdc); 85 85 ULONG MsgInitMenu(MSG *msg); 86 ULONG MsgHitTest(MSG *msg);86 ULONG MsgHitTest(ULONG x, ULONG y); 87 87 ULONG MsgNCPaint(); 88 88 ULONG MsgFormatFrame(); … … 113 113 114 114 LONG getLastHitTestVal() { return lastHitTestVal; } 115 BOOL getIgnoreHitTest() { return fIgnoreHitTest; }116 VOID setIgnoreHitTest(BOOL ignore) { fIgnoreHitTest = ignore; }117 115 118 116 DWORD getWindowContextHelpId() { return contextHelpId; }; … … 162 160 HMENU GetMenu() { return hMenu; }; 163 161 VOID SetMenu(HMENU newMenu) { hMenu = newMenu; }; 164 HMENU GetSysMenu() { return hSysMenu; };165 VOID SetSysMenu(HMENU newSysMenu) { hSysMenu = newSysMenu; };162 HMENU GetSystemMenu(BOOL fRevert); 163 HMENU getSystemMenu() { return hSysMenu; } 166 164 167 165 BOOL SetIcon(HICON hIcon); … … 205 203 BOOL IsWindowUnicode(); 206 204 207 BOOL GetWindowRect(PRECT pRect);208 205 int GetWindowTextLength(); 209 206 int GetWindowTextA(LPSTR lpsz, int cch); … … 300 297 DWORD contextHelpId; 301 298 LONG lastHitTestVal; //Last value returned by WM_NCHITTEST handler 302 BOOL fIgnoreHitTest; //Use WinWindowFromPoint during WM_HITTEST303 299 304 300 BOOL isIcon; -
trunk/src/user32/new/win32wmdiclient.cpp
r2292 r2400 1 /* $Id: win32wmdiclient.cpp,v 1. 9 2000-01-02 19:30:46 cbratschiExp $ */1 /* $Id: win32wmdiclient.cpp,v 1.10 2000-01-10 23:29:15 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 833 833 BOOL Win32MDIClientWindow::augmentFrameMenu(Win32MDIChildWindow *child) 834 834 { 835 HMENU hSysPopup = 0,hFrameMenu = ::GetMenu(getParent()->getWindowHandle()),hSysMenu = GetSystemMenu(child->getWindowHandle(),FALSE);835 HMENU hSysPopup = 0,hFrameMenu = ::GetMenu(getParent()->getWindowHandle()),hSysMenu = ::GetSystemMenu(child->getWindowHandle(),FALSE); 836 836 HBITMAP hSysMenuBitmap = 0; 837 837 -
trunk/src/user32/new/window.cpp
r2292 r2400 1 /* $Id: window.cpp,v 1.2 8 2000-01-02 19:30:46 cbratschiExp $ */1 /* $Id: window.cpp,v 1.29 2000-01-10 23:29:15 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 648 648 return 0; 649 649 } 650 rc = window->GetWindowRect(pRect); 650 if(pRect == NULL) { 651 SetLastError(ERROR_INVALID_PARAMETER); 652 return 0; 653 } 654 *pRect = *window->getWindowRect(); 651 655 dprintf(("GetWindowRect %x (%d,%d) (%d,%d)", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom)); 652 656 return rc; -
trunk/src/user32/oslibmsg.cpp
r2378 r2400 1 /* $Id: oslibmsg.cpp,v 1.2 3 2000-01-08 16:53:38sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.24 2000-01-10 23:29:11 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 183 183 } 184 184 //SvL: Don't dispatch messages sent by PostThreadMessage (correct??) 185 // Or WM_TIMER msgs with no window handle or timer proc 185 186 return 0; 186 187 … … 219 220 MsgThreadPtr->msg = 0; 220 221 MsgThreadPtr->hwnd = 0; 221 return TRUE;222 return (pMsg->message == WINWM_QUIT); 222 223 } 223 224 … … 276 277 } 277 278 memcpy(pMsg, &thdb->msgWCHAR, sizeof(MSG)); 278 return TRUE;279 return (pMsg->message == WINWM_QUIT); 279 280 } 280 281 continuepeekmsg: -
trunk/src/user32/oslibmsgtranslate.cpp
r2391 r2400 1 /* $Id: oslibmsgtranslate.cpp,v 1.1 2 2000-01-09 17:57:47sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.13 2000-01-10 23:29:11 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 125 125 } 126 126 //PostThreadMessage posts WIN32APP_POSTMSG msg without window handle 127 if(win32wnd == 0 && (os2Msg->msg != WM_CREATE && os2Msg->msg != WM_QUIT && os2Msg->msg != WIN32APP_POSTMSG)) 127 //Realplayer starts a timer with hwnd 0 & proc 0; check this here 128 if(win32wnd == 0 && (os2Msg->msg != WM_CREATE && os2Msg->msg != WM_QUIT && os2Msg->msg != WM_TIMER && os2Msg->msg != WIN32APP_POSTMSG)) 128 129 { 129 130 goto dummymessage; //not a win32 client window -
trunk/src/user32/timer.cpp
r2099 r2400 1 /* $Id: timer.cpp,v 1. 7 1999-12-17 17:18:03 cbratschiExp $ */1 /* $Id: timer.cpp,v 1.8 2000-01-10 23:29:11 sandervl Exp $ */ 2 2 3 3 /* … … 99 99 return (FALSE); /* forward message */ 100 100 101 if (!WinInSendMsg (GetThreadHAB())) 101 if (!WinInSendMsg (GetThreadHAB())) { 102 dprintf2(("TIMER_HandleTimer %x %x %x", pTimer->hwnd, pTimer->id, pMsg->time)); 102 103 pTimer->proc (pTimer->hwnd, (pTimer->inUse == TIMER::SystemTimer) ? WM_SYSTIMER_W:WM_TIMER_W, pTimer->id, pMsg->time); 103 104 } 104 105 return (TRUE); 105 106 } … … 221 222 UINT rc; 222 223 223 dprintf(("USER32: SetTimer % 04x %d %d %08lx", hwnd, id, timeout, (LONG)proc));224 dprintf(("USER32: SetTimer %x %d %d %08lx", hwnd, id, timeout, (LONG)proc)); 224 225 225 226 rc = TIMER_SetTimer (hwnd, id, timeout, proc, FALSE); … … 247 248 BOOL rc; 248 249 249 dprintf(("USER32: KillTimer % 04x %d", hwnd, id));250 dprintf(("USER32: KillTimer %x %d", hwnd, id)); 250 251 251 252 rc = TIMER_KillTimer (hwnd, id, FALSE); … … 260 261 BOOL rc; 261 262 262 dprintf(("USER32: KillSystemTimer % 04x %d", hwnd, id));263 dprintf(("USER32: KillSystemTimer %x %d", hwnd, id)); 263 264 264 265 rc = TIMER_KillTimer (hwnd, id, TRUE); -
trunk/src/user32/win32wbase.cpp
r2391 r2400 1 /* $Id: win32wbase.cpp,v 1.13 8 2000-01-09 17:57:48sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.139 2000-01-10 23:29:11 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2007 2007 if(!fOS2Look) { 2008 2008 if(fRevert == FALSE) { 2009 if(hSysMenu) { 2010 DestroyMenu(hSysMenu); 2011 } 2009 2012 OS2SysMenu = LoadMenuA(hInstanceUser32, (LPCSTR)"SYSMENU"); 2010 2013 if(OS2SysMenu) {
Note:
See TracChangeset
for help on using the changeset viewer.