- Timestamp:
- Jan 28, 2000, 11:26:01 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r2529 r2552 1 /* $Id: dc.cpp,v 1.3 7 2000-01-27 17:21:08 cbratschiExp $ */1 /* $Id: dc.cpp,v 1.38 2000-01-28 22:25:59 sandervl Exp $ */ 2 2 3 3 /* … … 438 438 HPS hPS_ownDC = NULLHANDLE; 439 439 440 dprintf (("USER32: BeginPaint(%x)", hWnd));441 442 440 if ( !lpps ) 443 441 { 444 O32_SetLastError (ERROR_INVALID_PARAMETER); 445 return (HDC)NULLHANDLE; 442 dprintf (("USER32: BeginPaint %x invalid parameter %x", hWnd, lpps)); 443 O32_SetLastError (ERROR_INVALID_PARAMETER); 444 return (HDC)NULLHANDLE; 446 445 } 447 446 … … 459 458 if (!pHps) 460 459 { 460 dprintf (("USER32: BeginPaint %x invalid parameter %x", hWnd, lpps)); 461 461 O32_SetLastError (ERROR_INVALID_PARAMETER); 462 462 return (HDC)NULLHANDLE; … … 504 504 505 505 O32_SetLastError(0); 506 dprintf(("USER32: BeginPaint %x -> hdc %x", hWnd, pHps->hps)); 506 507 return (HDC)pHps->hps; 507 508 } … … 688 689 hWindow = HWND_DESKTOP; 689 690 690 dprintf (("User32: GetDCEx hwnd %x (%x %x) -> wnd %x", hwnd, hrgn, flags, wnd));691 692 691 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) 693 692 // isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC() && wnd->getOwnDC())) … … 707 706 708 707 pHps->hdcType = TYPE_1; 708 dprintf (("User32: GetDCEx hwnd %x (%x %x) -> wnd %x hdc %x", hwnd, hrgn, flags, wnd, hps)); 709 709 return (HDC)hps; 710 710 } … … 784 784 GpiSetDrawControl (hps, DCTL_DISPLAY, drawingAllowed ? DCTL_ON : DCTL_OFF); 785 785 786 dprintf (("User32: GetDCEx hwnd %x (%x %x) -> hdc %x", hwnd, hrgn, flags, pHps->hps)); 786 787 return (HDC)pHps->hps; 787 788 -
trunk/src/user32/pmframe.cpp
r2533 r2552 1 /* $Id: pmframe.cpp,v 1.4 0 2000-01-27 21:50:01sandervl Exp $ */1 /* $Id: pmframe.cpp,v 1.41 2000-01-28 22:25:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 279 279 return (MRESULT)0xf; 280 280 } 281 goto RunDefFrameProc; 281 RestoreOS2TIB(); 282 return (MRESULT)0; 282 283 } 283 284 -
trunk/src/user32/pmwindow.cpp
r2533 r2552 1 /* $Id: pmwindow.cpp,v 1.8 2 2000-01-27 21:50:01sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.83 2000-01-28 22:25:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 403 403 if(wndpars->fsStatus & (WPM_CCHTEXT | WPM_TEXT)) 404 404 { 405 if(wndpars->fsStatus & WPM_TEXT) 406 win32wnd->MsgGetText(wndpars->pszText, wndpars->cchText); 405 407 if(wndpars->fsStatus & WPM_CCHTEXT) 406 408 wndpars->cchText = win32wnd->MsgGetTextLength(); 407 if(wndpars->fsStatus & WPM_TEXT)408 wndpars->pszText = win32wnd->MsgGetText();409 409 410 410 wndpars->fsStatus = 0; -
trunk/src/user32/win32wbase.cpp
r2533 r2552 1 /* $Id: win32wbase.cpp,v 1.14 7 2000-01-27 21:50:01sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.148 2000-01-28 22:26:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 649 649 if( (SendInternalMessageA(WM_CREATE, 0, (LPARAM)cs )) != -1 ) 650 650 { 651 if(!(flags & WIN_NEED_SIZE)) { 651 if(!(flags & WIN_NEED_SIZE)) 652 { 653 LPARAM lParam; 654 652 655 SendInternalMessageA(WM_SIZE, SIZE_RESTORED, 653 656 MAKELONG(rectClient.right-rectClient.left, 654 657 rectClient.bottom-rectClient.top)); 655 SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top)); 658 659 if(getParent()) {//in parent coordinates 660 POINT point; 661 662 point.x = rectClient.left; 663 point.y = rectClient.top; 664 MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1); 665 666 lParam = MAKELONG(point.x, point.y); 667 } 668 else {//in screen coordinates 669 lParam = MAKELONG(rectWindow.left+rectClient.left, rectWindow.top+rectClient.top); 670 } 671 672 SendInternalMessageA(WM_MOVE, 0, lParam); 656 673 } 657 674 … … 1052 1069 point.y = lpWndPos->y; 1053 1070 if (getParent()) ClientToScreen(getParent()->getWindowHandle(),&point); 1071 1054 1072 setWindowRect(point.x,point.y,point.x+lpWndPos->cx,point.y+lpWndPos->cy); 1055 1073 newWindowRect = rectWindow; … … 1093 1111 //****************************************************************************** 1094 1112 //****************************************************************************** 1095 char *Win32BaseWindow::MsgGetText() 1096 { 1097 SendInternalMessageA(WM_GETTEXT, wndNameLength, (LPARAM)windowNameA); 1098 return windowNameA; 1113 void Win32BaseWindow::MsgGetText(char *wndtext, ULONG textlength) 1114 { 1115 SendInternalMessageA(WM_GETTEXT, textlength, (LPARAM)wndtext); 1099 1116 } 1100 1117 //****************************************************************************** … … 1395 1412 SetCursor(hCursor); 1396 1413 return 1; 1397 } else return 0; 1398 } else return 0; 1414 } 1415 else return 0; 1416 } 1417 else return 0; 1399 1418 } 1400 1419 … … 1409 1428 if (!(wpos->flags & SWP_NOMOVE) && !(wpos->flags & SWP_NOCLIENTMOVE)) 1410 1429 { 1411 SendInternalMessageA(WM_MOVE, 0,MAKELONG(rectClient.left,rectClient.top));1430 SendInternalMessageA(WM_MOVE, 0, MAKELONG(wpos->x + rectClient.left, wpos->y + rectClient.top)); 1412 1431 } 1413 1432 if (!(wpos->flags & SWP_NOSIZE) && !(wpos->flags & SWP_NOCLIENTSIZE)) 1414 1433 { 1415 1434 if (dwStyle & WS_MAXIMIZE) wp = SIZE_MAXIMIZED; 1416 else if (dwStyle & WS_MINIMIZE) wp = SIZE_MINIMIZED; 1435 else 1436 if (dwStyle & WS_MINIMIZE) wp = SIZE_MINIMIZED; 1417 1437 1418 1438 SendInternalMessageA(WM_SIZE, wp, MAKELONG(rectClient.right - rectClient.left, -
trunk/src/user32/win32wbase.h
r2533 r2552 1 /* $Id: win32wbase.h,v 1.7 6 2000-01-27 21:50:02sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.77 2000-01-28 22:26:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 123 123 ULONG MsgSetText(LPSTR lpsz, LONG cch); 124 124 ULONG MsgGetTextLength(); 125 char *MsgGetText();125 void MsgGetText(char *wndtext, ULONG textlength); 126 126 VOID updateWindowStyle(DWORD oldExStyle,DWORD oldStyle); 127 127 -
trunk/src/user32/window.cpp
r2529 r2552 1 /* $Id: window.cpp,v 1.5 2 2000-01-27 17:21:10 cbratschiExp $ */1 /* $Id: window.cpp,v 1.53 2000-01-28 22:26:01 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 653 653 else 654 654 window = windowDesktop; 655 655 656 if(!window) { 656 657 dprintf(("GetWindowRect, window %x not found", hwnd)); … … 662 663 return FALSE; 663 664 } 664 *pRect = *window->getWindowRect(); 665 *pRect = *window->getWindowRect(); //always in screen coordinates 666 665 667 dprintf(("GetWindowRect %x (%d,%d) (%d,%d)", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom)); 666 668 return TRUE; … … 928 930 { 929 931 HWND DesktopWindow = windowDesktop->getWindowHandle(); 930 dprintf (("USER32: GetDesktopWindow, return%d\n", DesktopWindow));932 dprintf2(("USER32: GetDesktopWindow, returned %d\n", DesktopWindow)); 931 933 return DesktopWindow; 932 934 } … … 1053 1055 DWP *pDWP; 1054 1056 1055 dprintf(("USER32: BeginDeferWindowPos\n"));1056 1057 if (count <= 0) 1057 1058 { 1059 dprintf(("USER32: BeginDeferWindowPos invalid param %d", count)); 1058 1060 SetLastError(ERROR_INVALID_PARAMETER); 1059 1061 return 0; 1060 1062 } 1063 dprintf(("USER32: BeginDeferWindowPos %d", count)); 1061 1064 handle = (HDWP)HeapAlloc(GetProcessHeap(), 0, sizeof(DWP) + (count-1)*sizeof(WINDOWPOS) ); 1062 1065 if (!handle) … … 1100 1103 } 1101 1104 1105 dprintf(("USER32: DeferWindowPos hdwp %x hwnd %x hwndAfter %x (%d,%d)(%d,%d) %x", hdwp, hwnd, hwndAfter, 1106 x, y, cx, cy, flags)); 1102 1107 1103 1108 /* Numega Bounds Checker Demo dislikes the following code. -
trunk/src/user32/wndmsg.cpp
r2533 r2552 1 /* $Id: wndmsg.cpp,v 1.1 1 2000-01-27 21:50:03sandervl Exp $ */1 /* $Id: wndmsg.cpp,v 1.12 2000-01-28 22:26:01 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message text function for OS/2 … … 712 712 if(PostSpyMessage(hwnd, Msg, wParam, lParam) == FALSE) 713 713 { 714 #if 1715 if(!CheckCurFS()) {716 dprintf(("FS CORRUPT!!!!"));717 }718 #endif719 714 if(fInternalMsg) { 720 715 dprintf(("SendInternalMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
Note:
See TracChangeset
for help on using the changeset viewer.