- Timestamp:
- Jul 4, 2000, 10:42:07 AM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/USER32.DEF
r3705 r3800 1 ; $Id: USER32.DEF,v 1.3 4 2000-06-14 13:15:23sandervl Exp $1 ; $Id: USER32.DEF,v 1.35 2000-07-04 08:42:05 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 649 649 OSLibGetScreenHeight__Fv @2013 650 650 OSLibGetScreenWidth__Fv @2014 651 652 _SetMapMode@8 @2015 653 _GetMapMode@4 @2016 654 _SetViewportExtEx@16 @2017 655 _GetViewportExtEx@8 @2018 -
trunk/src/user32/dc.cpp
r3754 r3800 1 /* $Id: dc.cpp,v 1.6 4 2000-06-26 10:27:10sandervl Exp $ */1 /* $Id: dc.cpp,v 1.65 2000-07-04 08:42:05 sandervl Exp $ */ 2 2 3 3 /* … … 1655 1655 //****************************************************************************** 1656 1656 //****************************************************************************** 1657 int WIN32API SetMapMode(HDC hdc, int mode) 1658 { 1659 Win32BaseWindow *wnd; 1660 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc); 1661 if(!pHps) 1662 { 1663 SetLastError(ERROR_INVALID_HANDLE_W); 1664 dprintf(("GDI32: SetMapMode %x %x -> invalid hdc!!", hdc, mode)); 1665 return 0; 1666 } 1667 wnd = Win32BaseWindow::GetWindowFromHandle(WindowFromDC(hdc)); 1668 //todo: metafile recording 1669 1670 dprintf(("GDI32: SetMapMode %x %x", hdc, mode)); 1671 return setMapMode(wnd, pHps, mode); 1672 } 1673 //****************************************************************************** 1674 //****************************************************************************** 1675 int WIN32API GetMapMode(HDC hdc) 1676 { 1677 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc); 1678 if(pHps) { 1679 dprintf(("GDI32: GetMapMode %x -> %x", hdc, pHps->MapMode)); 1680 return pHps->MapMode; 1681 } 1682 dprintf(("GDI32: GetMapMode: invalid hdc %x!!!", hdc)); 1683 SetLastError(ERROR_INVALID_HANDLE_W); 1684 return 0; 1685 } 1686 //****************************************************************************** 1687 //****************************************************************************** 1688 BOOL WIN32API SetViewportExtEx(HDC hdc, int xExt, int yExt, LPSIZE pSize) 1689 { 1690 Win32BaseWindow *wnd; 1691 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc); 1692 1693 if(!pHps) 1694 { 1695 dprintf(("GDI32: SetViewportExtEx %x %d %d %x -> INVALID HDC", hdc, xExt, yExt, pSize)); 1696 SetLastError(ERROR_INVALID_HANDLE_W); 1697 return FALSE; 1698 } 1699 1700 if(pSize) { 1701 dprintf(("GDI32: SetViewportExtEx %x %d %d (%d,%d)", hdc, xExt, yExt, pSize->cx, pSize->cy)); 1702 } 1703 else dprintf(("GDI32: SetViewportExtEx %x %d %d NULL", hdc, xExt, yExt)); 1704 1705 if (xExt && yExt ) 1706 { 1707 //todo: Metafile recording!! (done for any map mode) 1708 1709 if(pHps->MapMode == MM_ISOTROPIC_W || pHps->MapMode == MM_ANISOTROPIC_W) 1710 { 1711 wnd = Win32BaseWindow::GetWindowFromHandle(WindowFromDC(hdc)); 1712 if(changePageXForm(wnd, pHps, NULL, xExt, yExt, (PPOINTL) pSize)) 1713 { 1714 SetLastError(ERROR_SUCCESS_W); 1715 return TRUE; 1716 } 1717 } 1718 else 1719 { 1720 pHps->lVwpXExtSave = xExt; 1721 pHps->lVwpYExtSave = yExt; 1722 1723 //if map mode is not ISOTROPIC nor ANISOTROPIC, this function does 1724 //nothing and returns TRUE (NT) 1725 SetLastError(ERROR_SUCCESS_W); 1726 return TRUE; 1727 } 1728 1729 SetLastError(ERROR_SUCCESS_W); 1730 return FALSE; 1731 } 1732 1733 SetLastError(ERROR_INVALID_PARAMETER_W); 1734 return FALSE; 1735 } 1736 //****************************************************************************** 1737 //****************************************************************************** 1738 BOOL WIN32API GetViewportExtEx(HDC hdc, LPSIZE pSize) 1739 { 1740 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc); 1741 if(!pHps) 1742 { 1743 dprintf(("GDI32: GetViewportExtEx %x %x -> INVALID HDC", hdc, pSize)); 1744 SetLastError(ERROR_INVALID_HANDLE_W); 1745 return FALSE; 1746 } 1747 1748 if(!pSize) 1749 { 1750 dprintf(("GDI32: GetViewportExtEx %x NULL -> INVALID parameter", hdc)); 1751 SetLastError(ERROR_INVALID_PARAMETER_W); 1752 return FALSE; 1753 } 1754 1755 pSize->cx = (LONG)pHps->viewportXExt; 1756 pSize->cy = (LONG)pHps->viewportYExt; 1757 dprintf(("GDI32: GetViewportExtEx %x -> (%d,%d)", hdc, pSize->cx, pSize->cy)); 1758 1759 SetLastError(ERROR_SUCCESS_W); 1760 return TRUE; 1761 } 1762 //****************************************************************************** 1763 //****************************************************************************** -
trunk/src/user32/pmwindow.cpp
r3783 r3800 1 /* $Id: pmwindow.cpp,v 1.9 7 2000-07-01 09:51:52sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.98 2000-07-04 08:42:06 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 694 694 695 695 rc = WinQueryUpdateRect(hwnd, &rectl); 696 dprintf(("OS2: WM_PAINT %x (%d,%d) (%d,%d) ", win32wnd->getWindowHandle(), rectl.xLeft, rectl.yBottom, rectl.xRight, rectl.yTop));696 dprintf(("OS2: WM_PAINT %x (%d,%d) (%d,%d) rc=%d", win32wnd->getWindowHandle(), rectl.xLeft, rectl.yBottom, rectl.xRight, rectl.yTop, rc)); 697 697 if(rc && win32wnd->IsWindowCreated() && (rectl.xLeft != rectl.xRight && 698 698 rectl.yBottom != rectl.yTop)) -
trunk/src/user32/win32wbase.cpp
r3789 r3800 1 /* $Id: win32wbase.cpp,v 1.20 5 2000-07-02 14:31:34sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.206 2000-07-04 08:42:07 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2291 2291 swp.hwnd = OS2Hwnd; 2292 2292 2293 dprintf (("WinSetWindowPos %x %x (%d,%d)(%d,%d) %x", swp.hwnd, swp.hwndInsertBehind, swp.x, swp.y, swp.cx, swp.cy, swp.fl));2294 rc = OSLibWinSetMultWindowPos(&swp, 1);2295 2296 2293 if(fuFlags & SWP_SHOWWINDOW && !IsWindowVisible()) { 2297 2294 setStyle(getStyle() | WS_VISIBLE); 2298 2295 if(hTaskList) { 2296 dprintf(("Adding window %x to tasklist", getWindowHandle())); 2299 2297 OSLibWinChangeTaskList(hTaskList, OS2Hwnd, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 2300 2298 } … … 2304 2302 setStyle(getStyle() & ~WS_VISIBLE); 2305 2303 if(hTaskList) { 2304 dprintf(("Removing window %x from tasklist", getWindowHandle())); 2306 2305 OSLibWinChangeTaskList(hTaskList, OS2Hwnd, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 2307 2306 } 2308 2307 } 2308 dprintf (("WinSetWindowPos %x %x (%d,%d)(%d,%d) %x", swp.hwnd, swp.hwndInsertBehind, swp.x, swp.y, swp.cx, swp.cy, swp.fl)); 2309 rc = OSLibWinSetMultWindowPos(&swp, 1); 2310 2309 2311 if(rc == FALSE) 2310 2312 {
Note:
See TracChangeset
for help on using the changeset viewer.