Ignore:
Timestamp:
Dec 16, 1999, 5:53:59 PM (26 years ago)
Author:
cbratschi
Message:

text output changes, desktop WM_GETTEXT fixed, scrollbar DC changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/user32.cpp

    r2084 r2093  
    1 /* $Id: user32.cpp,v 1.59 1999-12-16 00:11:45 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.60 1999-12-16 16:53:58 cbratschi Exp $ */
    22
    33/*
     
    16451645}
    16461646//******************************************************************************
    1647 //TODO: Not complete
    1648 //******************************************************************************
    1649 BOOL WIN32API GrayStringA(HDC hdc, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc,
    1650                           LPARAM lpData, int nCount, int X, int Y, int nWidth,
    1651                           int nHeight)
    1652 {
    1653  BOOL     rc;
    1654  COLORREF curclr;
    1655 
    1656 #ifdef DEBUG
    1657   WriteLog("USER32:  GrayStringA, not completely implemented\n");
    1658 #endif
    1659   if(lpOutputFunc == NULL && lpData == NULL) {
    1660 #ifdef DEBUG
    1661     WriteLog("USER32:  lpOutputFunc == NULL && lpData == NULL\n");
    1662 #endif
    1663     return(FALSE);
    1664   }
    1665   if(lpOutputFunc) {
    1666         return(lpOutputFunc(hdc, lpData, nCount));
    1667   }
    1668   curclr = SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
    1669   rc = TextOutA(hdc, X, Y, (char *)lpData, nCount);
    1670   SetTextColor(hdc, curclr);
    1671 
    1672   return(rc);
    1673 }
    1674 //******************************************************************************
    1675 //******************************************************************************
    1676 BOOL WIN32API GrayStringW(HDC hdc, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc,
    1677                           LPARAM lpData, int nCount, int X, int Y, int nWidth,
    1678                           int nHeight)
    1679 {
    1680  BOOL     rc;
    1681  char    *astring;
    1682  COLORREF curclr;
    1683 
    1684 #ifdef DEBUG
    1685   WriteLog("USER32:  GrayStringW, not completely implemented\n");
    1686 #endif
    1687 
    1688   if(lpOutputFunc == NULL && lpData == NULL) {
    1689 #ifdef DEBUG
    1690     WriteLog("USER32:  lpOutputFunc == NULL && lpData == NULL\n");
    1691 #endif
    1692     return(FALSE);
    1693   }
    1694   if(nCount == 0)
    1695     nCount = UniStrlen((UniChar*)lpData);
    1696 
    1697   if(lpOutputFunc) {
    1698     return(lpOutputFunc(hdc, lpData, nCount));
    1699   }
    1700   astring = UnicodeToAsciiString((LPWSTR)lpData);
    1701 
    1702   curclr = SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
    1703   rc = TextOutA(hdc, X, Y, astring, nCount);
    1704   SetTextColor(hdc, curclr);
    1705 
    1706   FreeAsciiString(astring);
    1707   return(rc);
    1708 }
    1709 //******************************************************************************
    17101647//******************************************************************************
    17111648#if 0
     
    18551792/* Message and Message Queue Functions */
    18561793
    1857 
    1858 /* Font and Text Functions */
    1859 
    1860 DWORD WIN32API GetTabbedTextExtentA( HDC hDC, LPCSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions)
    1861 {
    1862     dprintf2(("USER32: GetTabbedTextExtentA %x %s", hDC, lpString));
    1863     return O32_GetTabbedTextExtent(hDC,lpString,nCount,nTabPositions,lpnTabStopPositions);
    1864 }
    1865 //******************************************************************************
    1866 //******************************************************************************
    1867 DWORD WIN32API GetTabbedTextExtentW( HDC hDC, LPCWSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions)
    1868 {
    1869  char *astring = UnicodeToAsciiString((LPWSTR)lpString);
    1870  DWORD rc;
    1871 
    1872     dprintf2(("USER32: GetTabbedTextExtentW %x %s", hDC, astring));
    1873     rc = O32_GetTabbedTextExtent(hDC,astring,nCount,nTabPositions,lpnTabStopPositions);
    1874     FreeAsciiString(astring);
    1875     return rc;
    1876 }
    1877 //******************************************************************************
    1878 //******************************************************************************
    1879 LONG WIN32API TabbedTextOutA( HDC hdc, int x, int y, LPCSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions, int  nTabOrigin)
    1880 {
    1881 #ifdef DEBUG
    1882     WriteLog("USER32:  TabbedTextOutA\n");
    1883 #endif
    1884     return O32_TabbedTextOut(hdc,x,y,lpString,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin);
    1885 }
    1886 //******************************************************************************
    1887 //******************************************************************************
    1888 LONG WIN32API TabbedTextOutW( HDC hdc, int x, int y, LPCWSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions, int  nTabOrigin)
    1889 {
    1890  char *astring = UnicodeToAsciiString((LPWSTR)lpString);
    1891  LONG rc;
    1892 
    1893 #ifdef DEBUG
    1894     WriteLog("USER32:  TabbedTextOutW\n");
    1895 #endif
    1896     rc = O32_TabbedTextOut(hdc,x,y,astring,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin);
    1897     FreeAsciiString(astring);
    1898     return rc;
    1899 }
    19001794
    19011795/* Device Context Functions */
Note: See TracChangeset for help on using the changeset viewer.