Changeset 4558 for trunk/src


Ignore:
Timestamp:
Nov 5, 2000, 7:49:09 PM (25 years ago)
Author:
sandervl
Message:

extra exports for gdi32; moved 4 apis back into gdi32

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:24 sandervl Exp $
     1; $Id: USER32.DEF,v 1.40 2000-11-05 18:49:06 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    630630    EnumDisplayDevicesW        = _EnumDisplayDevicesW@16        @1007
    631631
    632 ;
    633 ; These are also APIs.
    634 ;
    635     _SetMapMode@8                                                @1050
    636     _GetMapMode@4                                                @1051
    637     _SetViewportExtEx@16                                         @1052
    638     _GetViewportExtEx@8                                          @1053
    639 
    640632
    641633; Wine/Odin helper function
     
    662654    _wvsnprintfW@16                                              @2015
    663655
    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.75 2000-11-04 16:28:25 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.76 2000-11-05 18:49:07 sandervl Exp $ */
    22
    33/*
     
    9393//******************************************************************************
    9494//******************************************************************************
    95 void TestWideLine (pDCData pHps)
     95void WIN32API TestWideLine (pDCData pHps)
    9696{
    9797   const LOGPEN_W *pLogPen;
     
    117117//******************************************************************************
    118118//******************************************************************************
    119 void Calculate1PixelDelta(pDCData pHps)
     119void WIN32API Calculate1PixelDelta(pDCData pHps)
    120120{
    121121   POINTL aptl[2] = {0, 0, 1, 1};
     
    435435   // to get the new visible region
    436436   GreCombineRegion(pHps->hps, hrgnRect, pHps->hrgnVis, hrgnRect, CRGN_AND);
     437#ifdef DEBUG
     438   dprintfRegion1(pHps->hps, window->getWindowHandle(), hrgnRect);
     439#endif
    437440     
    438441   // Set the new origin plus visible region in the DC
     
    485488//******************************************************************************
    486489//******************************************************************************
    487 BOOL   WIN32API WGSS_changePageXForm(pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev)
     490BOOL   WIN32API changePageXForm(pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev)
    488491{
    489492 Win32BaseWindow *wnd;
     
    494497//******************************************************************************
    495498//******************************************************************************
    496 BOOL   WIN32API WGSS_setPageXForm(pDCData pHps)
     499BOOL   WIN32API setPageXForm(pDCData pHps)
    497500{
    498501 Win32BaseWindow *wnd;
     
    503506//******************************************************************************
    504507//******************************************************************************
    505 VOID   WIN32API WGSS_removeClientArea(pDCData pHps)
     508VOID   WIN32API removeClientArea(pDCData pHps)
    506509{
    507510 Win32BaseWindow *wnd;
     
    512515//******************************************************************************
    513516//******************************************************************************
    514 LONG   WIN32API WGSS_clientHeight(HWND hwnd, pDCData pHps)
     517LONG   WIN32API clientHeight(HWND hwnd, pDCData pHps)
    515518{
    516519 Win32BaseWindow *wnd;
     
    518521   wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd);
    519522   return clientHeight(wnd, hwnd, pHps);
     523}
     524//******************************************************************************
     525//******************************************************************************
     526int  WIN32API setMapMode(pDCData pHps, int mode)
     527{
     528 Win32BaseWindow *wnd;
     529
     530   wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd);
     531   return setMapMode(wnd, pHps, mode);
    520532}
    521533//******************************************************************************
     
    729741   WinShowTrackRect(wnd->getOS2WindowHandle(), FALSE);
    730742
     743   //testestest
     744   if(hwnd == 0x68000019) {
     745        lpps->fErase = 1;
     746   }
    731747   if(wnd->needsEraseBkgnd() && lComplexity != RGN_NULL) {
    732748        wnd->setEraseBkgnd(FALSE);
     
    17451761//******************************************************************************
    17461762//******************************************************************************
    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 recording
    1759 
    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       else
    1809       {
    1810          pHps->lVwpXExtSave = xExt;
    1811          pHps->lVwpYExtSave = yExt;
    1812 
    1813          //if map mode is not ISOTROPIC nor ANISOTROPIC, this function does
    1814          //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.31 2000-10-22 16:07:47 sandervl Exp $ */
     1/* $Id: loadres.cpp,v 1.32 2000-11-05 18:49:07 sandervl Exp $ */
    22
    33/*
     
    115115 HRSRC          hRes;
    116116 LPSTR          restype = RT_ICONA;
     117
     118    dprintf(("USER32: LoadIconA %x %x (%d,%d) %x", hinst, lpszIcon, cxDesired, cyDesired, fuLoad));
    117119
    118120    if(fuLoad & LR_LOADFROMFILE)
  • trunk/src/user32/win32wbase.cpp

    r4524 r4558  
    1 /* $Id: win32wbase.cpp,v 1.220 2000-10-23 18:28:53 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.221 2000-11-05 18:49:07 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    9595  fParentDC        = FALSE;
    9696  fComingToTop     = FALSE;
     97  fCreateSetWindowPos = FALSE;
    9798
    9899  windowNameA      = NULL;
     
    639640  }
    640641
    641   //preset rects
     642  //set client & window rectangles from CreateWindowEx CREATESTRUCT
    642643  rectWindow.left = cs->x;
    643644  rectWindow.right = cs->x+cs->cx;
    644645  rectWindow.top = cs->y;
    645646  rectWindow.bottom = cs->y+cs->cy;
    646   rectClient = rectWindow; //dummy client rect
     647  rectClient = rectWindow;
    647648  OffsetRect(&rectClient, -rectClient.left, -rectClient.top);
    648649
     
    673674                fCXDefault = FALSE;
    674675                cs->cx = cs->cy = 0;
     676                rectWindow.right  = rectWindow.left;
     677                rectWindow.bottom = rectWindow.top;
    675678            }
    676679        }
    677         //update rect
    678         rectWindow.left = cs->x;
    679         rectWindow.right = cs->x+cs->cx;
    680         rectWindow.top = cs->y;
    681         rectWindow.bottom = cs->y+cs->cy;
    682680        tmpRect = rectWindow;
    683681
    684         rectClient = rectWindow;
    685         OffsetRect(&rectClient, -rectClient.left, -rectClient.top);
    686         OffsetRect(&rectWindow, maxPos.x - rectWindow.left, maxPos.y - rectWindow.top);
     682        fCreateSetWindowPos = TRUE;
    687683
    688684        //set the window size and update the client
     
    22662262    }
    22672263#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    }
    22682283
    22692284    WINDOWPOS wpos;
  • trunk/src/user32/win32wbase.h

    r4194 r4558  
    1 /* $Id: win32wbase.h,v 1.99 2000-09-05 19:20:37 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.100 2000-11-05 18:49:09 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    356356        BOOL    fParentDC;
    357357        BOOL    fComingToTop;
     358        BOOL    fCreateSetWindowPos;    //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called
    358359
    359360        HRGN    hWindowRegion;
Note: See TracChangeset for help on using the changeset viewer.