- Timestamp:
- Jun 17, 2001, 11:08:01 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/display.cpp
r4535 r6040 1 /* $Id: display.cpp,v 1.1 0 2000-10-26 17:22:23sandervl Exp $ */1 /* $Id: display.cpp,v 1.11 2001-06-17 21:08:00 sandervl Exp $ */ 2 2 /* 3 3 * Display/Monitor Win32 apis … … 434 434 RECT rcWork; 435 435 436 dprintf(("USER32: GetMonitorInfoA\n"));436 dprintf(("USER32: GetMonitorInfoA %x %x", hMonitor, lpMonitorInfo)); 437 437 438 438 if ((hMonitor == xPRIMARY_MONITOR) && … … 462 462 RECT rcWork; 463 463 464 dprintf(("USER32: GetMonitorInfoW\n"));464 dprintf(("USER32: GetMonitorInfoW %x %x", hMonitor, lpMonitorInfo)); 465 465 466 466 if ((hMonitor == xPRIMARY_MONITOR) && … … 490 490 WINDOWPLACEMENT wp; 491 491 492 dprintf(("USER32: MonitorFromWindow\n"));492 dprintf(("USER32: MonitorFromWindow %x %x", hWnd, dwFlags)); 493 493 494 494 if (dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) … … 502 502 } 503 503 504 dprintf(("USER32: MonitorFromWindow failed")); 504 505 return NULL; 505 506 } … … 508 509 HMONITOR WIN32API MonitorFromRect(LPRECT lprcScreenCoords, DWORD dwFlags) 509 510 { 510 dprintf(("USER32: MonitorFromRect\n"));511 dprintf(("USER32: MonitorFromRect (%d,%d)(%d,%d) %x", lprcScreenCoords->left, lprcScreenCoords->top, lprcScreenCoords->right, lprcScreenCoords->bottom, dwFlags)); 511 512 512 513 if ((dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) || … … 518 519 return xPRIMARY_MONITOR; 519 520 } 521 dprintf(("USER32: MonitorFromRect failed")); 520 522 return NULL; 521 523 } … … 524 526 HMONITOR WIN32API MonitorFromPoint(POINT ptScreenCoords, DWORD dwFlags) 525 527 { 526 dprintf(("USER32: MonitorFromPoint\n"));528 dprintf(("USER32: MonitorFromPoint (%d,%d) %x", ptScreenCoords.x, ptScreenCoords.y, dwFlags)); 527 529 528 530 if ((dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) || … … 535 537 } 536 538 539 dprintf(("USER32: MonitorFromPoint failed")); 537 540 return NULL; 538 541 } … … 545 548 LPARAM dwData) 546 549 { 547 dprintf(("USER32: EnumDisplayMonitors\n"));548 549 550 RECT rcLimit; 551 552 dprintf(("USER32: EnumDisplayMonitors %x %x %x %x", hdcOptionalForPainting, lprcEnumMonitorsThatIntersect, lpfnEnumProc, dwData)); 550 553 551 554 if (!lpfnEnumProc) -
trunk/src/user32/pmwindow.cpp
r6008 r6040 1 /* $Id: pmwindow.cpp,v 1.13 6 2001-06-14 11:30:56sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.137 2001-06-17 21:08:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 1183 1183 #ifdef DEBUG 1184 1184 case WM_QUERYFOCUSCHAIN: 1185 dprintf (("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2));1185 dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2)); 1186 1186 1187 1187 RestoreOS2TIB(); 1188 1188 rc = pfnFrameWndProc(hwnd, msg, mp1, mp2); 1189 1189 SetWin32TIB(); 1190 dprintf (("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2, rc));1190 dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2, rc)); 1191 1191 break; 1192 1192 // goto RunDefFrameWndProc; -
trunk/src/user32/scroll.cpp
r5935 r6040 1 /* $Id: scroll.cpp,v 1. 39 2001-06-09 14:50:19sandervl Exp $ */1 /* $Id: scroll.cpp,v 1.40 2001-06-17 21:08:00 sandervl Exp $ */ 2 2 /* 3 3 * Scrollbar control … … 670 670 CREATESTRUCTA *lpCreat = (CREATESTRUCTA *)lParam; 671 671 672 if (!(lpCreat->style & (SBS_SIZEBOX | SBS_SIZEGRIP)) && (lpCreat->style & (SBS_LEFTALIGN | SBS_RIGHTALIGN))) 672 #ifdef __WIN32OS2__ 673 if (!((lpCreat->style & (SBS_SIZEBOX | SBS_SIZEGRIP)) && !(lpCreat->style & (SBS_SIZEBOXTOPLEFTALIGN | SBS_SIZEBOXBOTTOMRIGHTALIGN)))) 674 #endif 673 675 { 674 676 if (lpCreat->style & SBS_VERT) -
trunk/src/user32/win32wbase.cpp
r6012 r6040 1 /* $Id: win32wbase.cpp,v 1.27 0 2001-06-14 14:49:17sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.271 2001-06-17 21:08:01 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 3463 3463 break; 3464 3464 } 3465 value &= ~(WS_CHILD|WS_VISIBLE); /* Some bits can't be changed this way (WINE) */ 3465 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x (%x)", getWindowHandle(), dwStyle, value)); 3466 #ifdef DEBUG 3467 if((value & WS_CHILD) != (dwStyle & WS_CHILD)) { 3468 DebugInt3(); //is this allowed? 3469 } 3470 #endif 3471 value &= ~(WS_CHILD); 3466 3472 ss.styleOld = getStyle(); 3467 ss.styleNew = value | (ss.styleOld & (WS_CHILD|WS_VISIBLE)); 3468 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x", getWindowHandle(), ss.styleOld, ss.styleNew)); 3473 ss.styleNew = value | (ss.styleOld & WS_CHILD); 3469 3474 SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss); 3470 3475 setStyle(ss.styleNew); 3471 3476 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 3472 3477 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle()); 3478 3479 //TODO: Might not be correct to use ShowWindow here 3480 if((ss.styleOld & WS_VISIBLE) != (ss.styleNew & WS_VISIBLE)) { 3481 if(ss.styleNew & WS_VISIBLE) 3482 ShowWindow(SW_SHOWNOACTIVATE); 3483 else ShowWindow(SW_HIDE); 3484 } 3473 3485 #ifdef DEBUG 3474 3486 PrintWindowStyle(ss.styleNew, 0); … … 3705 3717 Win32BaseWindow *window; 3706 3718 3719 ////TODO: temporary workaround for crashes in Opera (pmwinx; releasesemaphore) 3720 //// while browsing 3721 //// Not thread safe now! 3707 3722 //// lock(&critsect); 3708 3723 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {
Note:
See TracChangeset
for help on using the changeset viewer.