- Timestamp:
- Nov 5, 2000, 7:49:09 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/USER32.DEF
r4551 r4558 1 ; $Id: USER32.DEF,v 1. 39 2000-11-04 16:28:24sandervl Exp $1 ; $Id: USER32.DEF,v 1.40 2000-11-05 18:49:06 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 630 630 EnumDisplayDevicesW = _EnumDisplayDevicesW@16 @1007 631 631 632 ;633 ; These are also APIs.634 ;635 _SetMapMode@8 @1050636 _GetMapMode@4 @1051637 _SetViewportExtEx@16 @1052638 _GetViewportExtEx@8 @1053639 640 632 641 633 ; Wine/Odin helper function … … 662 654 _wvsnprintfW@16 @2015 663 655 664 _WGSS_setPageXForm@4 @2016 665 _WGSS_clientHeight@8 @2017 666 _WGSS_changePageXForm@20 @2018 667 _WGSS_removeClientArea@4 @2019 656 _setPageXForm@4 @2016 657 _clientHeight@8 @2017 658 _changePageXForm@20 @2018 659 _removeClientArea@4 @2019 660 _setMapMode@8 @2020 661 _TestWideLine@4 @2021 662 _Calculate1PixelDelta@4 @2022 -
trunk/src/user32/dc.cpp
r4551 r4558 1 /* $Id: dc.cpp,v 1.7 5 2000-11-04 16:28:25sandervl Exp $ */1 /* $Id: dc.cpp,v 1.76 2000-11-05 18:49:07 sandervl Exp $ */ 2 2 3 3 /* … … 93 93 //****************************************************************************** 94 94 //****************************************************************************** 95 void TestWideLine (pDCData pHps)95 void WIN32API TestWideLine (pDCData pHps) 96 96 { 97 97 const LOGPEN_W *pLogPen; … … 117 117 //****************************************************************************** 118 118 //****************************************************************************** 119 void Calculate1PixelDelta(pDCData pHps)119 void WIN32API Calculate1PixelDelta(pDCData pHps) 120 120 { 121 121 POINTL aptl[2] = {0, 0, 1, 1}; … … 435 435 // to get the new visible region 436 436 GreCombineRegion(pHps->hps, hrgnRect, pHps->hrgnVis, hrgnRect, CRGN_AND); 437 #ifdef DEBUG 438 dprintfRegion1(pHps->hps, window->getWindowHandle(), hrgnRect); 439 #endif 437 440 438 441 // Set the new origin plus visible region in the DC … … 485 488 //****************************************************************************** 486 489 //****************************************************************************** 487 BOOL WIN32API WGSS_changePageXForm(pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev)490 BOOL WIN32API changePageXForm(pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev) 488 491 { 489 492 Win32BaseWindow *wnd; … … 494 497 //****************************************************************************** 495 498 //****************************************************************************** 496 BOOL WIN32API WGSS_setPageXForm(pDCData pHps)499 BOOL WIN32API setPageXForm(pDCData pHps) 497 500 { 498 501 Win32BaseWindow *wnd; … … 503 506 //****************************************************************************** 504 507 //****************************************************************************** 505 VOID WIN32API WGSS_removeClientArea(pDCData pHps)508 VOID WIN32API removeClientArea(pDCData pHps) 506 509 { 507 510 Win32BaseWindow *wnd; … … 512 515 //****************************************************************************** 513 516 //****************************************************************************** 514 LONG WIN32API WGSS_clientHeight(HWND hwnd, pDCData pHps)517 LONG WIN32API clientHeight(HWND hwnd, pDCData pHps) 515 518 { 516 519 Win32BaseWindow *wnd; … … 518 521 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 519 522 return clientHeight(wnd, hwnd, pHps); 523 } 524 //****************************************************************************** 525 //****************************************************************************** 526 int WIN32API setMapMode(pDCData pHps, int mode) 527 { 528 Win32BaseWindow *wnd; 529 530 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 531 return setMapMode(wnd, pHps, mode); 520 532 } 521 533 //****************************************************************************** … … 729 741 WinShowTrackRect(wnd->getOS2WindowHandle(), FALSE); 730 742 743 //testestest 744 if(hwnd == 0x68000019) { 745 lpps->fErase = 1; 746 } 731 747 if(wnd->needsEraseBkgnd() && lComplexity != RGN_NULL) { 732 748 wnd->setEraseBkgnd(FALSE); … … 1745 1761 //****************************************************************************** 1746 1762 //****************************************************************************** 1747 int WIN32API SetMapMode(HDC hdc, int mode)1748 {1749 Win32BaseWindow *wnd;1750 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc);1751 if(!pHps)1752 {1753 SetLastError(ERROR_INVALID_HANDLE_W);1754 dprintf(("GDI32: SetMapMode %x %x -> invalid hdc!!", hdc, mode));1755 return 0;1756 }1757 wnd = Win32BaseWindow::GetWindowFromHandle(WindowFromDC(hdc));1758 //todo: metafile recording1759 1760 dprintf(("GDI32: SetMapMode %x %x", hdc, mode));1761 return setMapMode(wnd, pHps, mode);1762 }1763 //******************************************************************************1764 //******************************************************************************1765 int WIN32API GetMapMode(HDC hdc)1766 {1767 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc);1768 if(pHps) {1769 dprintf(("GDI32: GetMapMode %x -> %x", hdc, pHps->MapMode));1770 return pHps->MapMode;1771 }1772 dprintf(("GDI32: GetMapMode: invalid hdc %x!!!", hdc));1773 SetLastError(ERROR_INVALID_HANDLE_W);1774 return 0;1775 }1776 //******************************************************************************1777 //******************************************************************************1778 BOOL WIN32API SetViewportExtEx(HDC hdc, int xExt, int yExt, LPSIZE pSize)1779 {1780 Win32BaseWindow *wnd;1781 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc);1782 1783 if(!pHps)1784 {1785 dprintf(("GDI32: SetViewportExtEx %x %d %d %x -> INVALID HDC", hdc, xExt, yExt, pSize));1786 SetLastError(ERROR_INVALID_HANDLE_W);1787 return FALSE;1788 }1789 1790 if(pSize) {1791 dprintf(("GDI32: SetViewportExtEx %x %d %d (%d,%d)", hdc, xExt, yExt, pSize->cx, pSize->cy));1792 }1793 else dprintf(("GDI32: SetViewportExtEx %x %d %d NULL", hdc, xExt, yExt));1794 1795 if (xExt && yExt )1796 {1797 //todo: Metafile recording!! (done for any map mode)1798 1799 if(pHps->MapMode == MM_ISOTROPIC_W || pHps->MapMode == MM_ANISOTROPIC_W)1800 {1801 wnd = Win32BaseWindow::GetWindowFromHandle(WindowFromDC(hdc));1802 if(changePageXForm(wnd, pHps, NULL, xExt, yExt, (PPOINTL) pSize))1803 {1804 SetLastError(ERROR_SUCCESS_W);1805 return TRUE;1806 }1807 }1808 else1809 {1810 pHps->lVwpXExtSave = xExt;1811 pHps->lVwpYExtSave = yExt;1812 1813 //if map mode is not ISOTROPIC nor ANISOTROPIC, this function does1814 //nothing and returns TRUE (NT)1815 SetLastError(ERROR_SUCCESS_W);1816 return TRUE;1817 }1818 1819 SetLastError(ERROR_SUCCESS_W);1820 return FALSE;1821 }1822 1823 SetLastError(ERROR_INVALID_PARAMETER_W);1824 return FALSE;1825 }1826 //******************************************************************************1827 //******************************************************************************1828 BOOL WIN32API GetViewportExtEx(HDC hdc, LPSIZE pSize)1829 {1830 pDCData pHps = (pDCData)GpiQueryDCData((HPS)hdc);1831 if(!pHps)1832 {1833 dprintf(("GDI32: GetViewportExtEx %x %x -> INVALID HDC", hdc, pSize));1834 SetLastError(ERROR_INVALID_HANDLE_W);1835 return FALSE;1836 }1837 1838 if(!pSize)1839 {1840 dprintf(("GDI32: GetViewportExtEx %x NULL -> INVALID parameter", hdc));1841 SetLastError(ERROR_INVALID_PARAMETER_W);1842 return FALSE;1843 }1844 1845 pSize->cx = (LONG)pHps->viewportXExt;1846 pSize->cy = (LONG)pHps->viewportYExt;1847 dprintf(("GDI32: GetViewportExtEx %x -> (%d,%d)", hdc, pSize->cx, pSize->cy));1848 1849 SetLastError(ERROR_SUCCESS_W);1850 return TRUE;1851 }1852 //******************************************************************************1853 //****************************************************************************** -
trunk/src/user32/loadres.cpp
r4515 r4558 1 /* $Id: loadres.cpp,v 1.3 1 2000-10-22 16:07:47 sandervl Exp $ */1 /* $Id: loadres.cpp,v 1.32 2000-11-05 18:49:07 sandervl Exp $ */ 2 2 3 3 /* … … 115 115 HRSRC hRes; 116 116 LPSTR restype = RT_ICONA; 117 118 dprintf(("USER32: LoadIconA %x %x (%d,%d) %x", hinst, lpszIcon, cxDesired, cyDesired, fuLoad)); 117 119 118 120 if(fuLoad & LR_LOADFROMFILE) -
trunk/src/user32/win32wbase.cpp
r4524 r4558 1 /* $Id: win32wbase.cpp,v 1.22 0 2000-10-23 18:28:53sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.221 2000-11-05 18:49:07 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 95 95 fParentDC = FALSE; 96 96 fComingToTop = FALSE; 97 fCreateSetWindowPos = FALSE; 97 98 98 99 windowNameA = NULL; … … 639 640 } 640 641 641 // preset rects642 //set client & window rectangles from CreateWindowEx CREATESTRUCT 642 643 rectWindow.left = cs->x; 643 644 rectWindow.right = cs->x+cs->cx; 644 645 rectWindow.top = cs->y; 645 646 rectWindow.bottom = cs->y+cs->cy; 646 rectClient = rectWindow; //dummy client rect647 rectClient = rectWindow; 647 648 OffsetRect(&rectClient, -rectClient.left, -rectClient.top); 648 649 … … 673 674 fCXDefault = FALSE; 674 675 cs->cx = cs->cy = 0; 676 rectWindow.right = rectWindow.left; 677 rectWindow.bottom = rectWindow.top; 675 678 } 676 679 } 677 //update rect678 rectWindow.left = cs->x;679 rectWindow.right = cs->x+cs->cx;680 rectWindow.top = cs->y;681 rectWindow.bottom = cs->y+cs->cy;682 680 tmpRect = rectWindow; 683 681 684 rectClient = rectWindow; 685 OffsetRect(&rectClient, -rectClient.left, -rectClient.top); 686 OffsetRect(&rectWindow, maxPos.x - rectWindow.left, maxPos.y - rectWindow.top); 682 fCreateSetWindowPos = TRUE; 687 683 688 684 //set the window size and update the client … … 2266 2262 } 2267 2263 #endif 2264 2265 if(!fCreateSetWindowPos) 2266 {//don't change size; modify internal structures only 2267 //TODO: not 100% correct yet (activate) 2268 if(!(fuFlags & SWP_NOZORDER)) { 2269 hwndLinkAfter = hwndInsertAfter; 2270 } 2271 if(!(fuFlags & SWP_NOMOVE)) { 2272 rectWindow.bottom = (rectWindow.bottom - rectWindow.top) + y; 2273 rectWindow.top = y; 2274 rectWindow.right = (rectWindow.right - rectWindow.left) + x; 2275 rectWindow.left = x; 2276 } 2277 if(!(fuFlags & SWP_NOSIZE)) { 2278 rectWindow.bottom = rectWindow.top + cy; 2279 rectWindow.right = rectWindow.left + cx; 2280 } 2281 return TRUE; 2282 } 2268 2283 2269 2284 WINDOWPOS wpos; -
trunk/src/user32/win32wbase.h
r4194 r4558 1 /* $Id: win32wbase.h,v 1. 99 2000-09-05 19:20:37sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.100 2000-11-05 18:49:09 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 356 356 BOOL fParentDC; 357 357 BOOL fComingToTop; 358 BOOL fCreateSetWindowPos; //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called 358 359 359 360 HRGN hWindowRegion;
Note:
See TracChangeset
for help on using the changeset viewer.