- Timestamp:
- Jan 29, 2000, 3:23:33 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r2552 r2560 1 /* $Id: dc.cpp,v 1.3 8 2000-01-28 22:25:59sandervl Exp $ */1 /* $Id: dc.cpp,v 1.39 2000-01-29 14:23:32 sandervl Exp $ */ 2 2 3 3 /* … … 445 445 } 446 446 447 if(hWnd == 0x6800003a) {448 hwnd = 0x6800003a;449 }450 447 Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle(hwnd); 451 448 -
trunk/src/user32/text.cpp
r2469 r2560 1 /* $Id: text.cpp,v 1. 5 2000-01-18 20:10:46sandervl Exp $ */1 /* $Id: text.cpp,v 1.6 2000-01-29 14:23:33 sandervl Exp $ */ 2 2 3 3 /* … … 48 48 INT WIN32API DrawTextA(HDC hDC,LPCSTR lpString,INT nCount,PRECT lpRect,UINT nFormat) 49 49 { 50 dprintf(("USER32: DrawTextA %x",hDC)); 51 50 int bla; 51 52 dprintf(("USER32: DrawTextA %x %s %d (%d,%d)(%d,%d) %x",hDC, lpString, nCount, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom, nFormat)); 53 54 if(nFormat == 0x828) { 55 bla = 1; 56 } 52 57 return InternalDrawTextExA(hDC,lpString,nCount,lpRect,nFormat,NULL,FALSE); 53 58 } … … 64 69 INT WIN32API DrawTextExA(HDC hdc,LPCSTR lpchText,INT cchText,LPRECT lprc,UINT dwDTFormat,LPDRAWTEXTPARAMS lpDTParams) 65 70 { 66 dprintf(("USER32: DrawTextExA %x\n",hdc));71 dprintf(("USER32: DrawTextExA %x %s %d (%d,%d)(%d,%d) %x",hdc, lpchText, cchText, lprc->left, lprc->top, lprc->right, lprc->bottom, dwDTFormat)); 67 72 68 73 return InternalDrawTextExA(hdc,lpchText,cchText,lprc,dwDTFormat,lpDTParams,TRUE); -
trunk/src/user32/uitools.cpp
r2469 r2560 1 /* $Id: uitools.cpp,v 1.2 1 2000-01-18 20:10:47sandervl Exp $ */1 /* $Id: uitools.cpp,v 1.22 2000-01-29 14:23:33 sandervl Exp $ */ 2 2 /* 3 3 * User Interface Functions … … 2003 2003 2004 2004 if (str) 2005 O32_DrawText(hdc,2005 DrawTextA (hdc, 2006 2006 str, 2007 2007 -1, … … 2017 2017 128); 2018 2018 2019 O32_DrawText(hdc,2019 DrawTextA (hdc, 2020 2020 szText, 2021 2021 nLen, -
trunk/src/user32/window.cpp
r2552 r2560 1 /* $Id: window.cpp,v 1.5 3 2000-01-28 22:26:01sandervl Exp $ */1 /* $Id: window.cpp,v 1.54 2000-01-29 14:23:33 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 654 654 window = windowDesktop; 655 655 656 656 657 if(!window) { 657 658 dprintf(("GetWindowRect, window %x not found", hwnd)); … … 665 666 *pRect = *window->getWindowRect(); //always in screen coordinates 666 667 668 if(hwnd == 0x68000034) { 669 window = 0; 670 } 667 671 dprintf(("GetWindowRect %x (%d,%d) (%d,%d)", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom)); 668 672 return TRUE; … … 917 921 Win32BaseWindow *wnd; 918 922 PRECT rcl; 919 920 dprintf(("ScreenToClient %x (%d,%d)\n", hwnd, pt->x, pt->y)); 923 BOOL rc; 921 924 922 925 if (!hwnd) return (TRUE); 923 926 wnd = Win32BaseWindow::GetWindowFromHandle (hwnd); 924 if (!wnd) return (TRUE); 925 return mapWin32Point(OSLIB_HWND_DESKTOP,wnd->getOS2WindowHandle(),(OSLIBPOINT*)pt); 927 if (!wnd) { 928 dprintf(("warning: ScreenToClient: window %x not found!", hwnd)); 929 return (TRUE); 930 } 931 #ifdef DEBUG 932 POINT tmp = *pt; 933 #endif 934 rc = mapWin32Point(OSLIB_HWND_DESKTOP, wnd->getOS2WindowHandle(), (OSLIBPOINT*)pt); 935 dprintf(("ScreenToClient %x (%d,%d) -> (%d,%d)", hwnd, tmp.x, tmp.y, pt->x, pt->y)); 936 return rc; 926 937 } 927 938 //****************************************************************************** … … 1035 1046 Win32BaseWindow *wnd; 1036 1047 PRECT rcl; 1037 1038 dprintf(("ClientToScreen (%d,%d)\n", pt->x, pt->y)); 1048 BOOL rc; 1049 1039 1050 if (!hwnd) { 1040 1051 SetLastError(ERROR_INVALID_PARAMETER); … … 1043 1054 wnd = Win32BaseWindow::GetWindowFromHandle (hwnd); 1044 1055 if (!wnd) { 1056 dprintf(("warning: ClientToScreen window %x not found!", hwnd)); 1045 1057 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 1046 1058 return (FALSE); 1047 1059 } 1048 return mapWin32Point(wnd->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,(OSLIBPOINT*)pt); 1060 #ifdef DEBUG 1061 POINT tmp = *pt; 1062 #endif 1063 rc = mapWin32Point(wnd->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,(OSLIBPOINT*)pt); 1064 dprintf(("ClientToScreen %x (%d,%d) -> (%d,%d)", hwnd, tmp.x, tmp.y, pt->x, pt->y)); 1065 1066 return rc; 1049 1067 } 1050 1068 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.