Changeset 2093 for trunk/src/user32/user32.cpp
- Timestamp:
- Dec 16, 1999, 5:53:59 PM (26 years ago)
- 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 sandervlExp $ */1 /* $Id: user32.cpp,v 1.60 1999-12-16 16:53:58 cbratschi Exp $ */ 2 2 3 3 /* … … 1645 1645 } 1646 1646 //****************************************************************************** 1647 //TODO: Not complete1648 //******************************************************************************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 DEBUG1657 WriteLog("USER32: GrayStringA, not completely implemented\n");1658 #endif1659 if(lpOutputFunc == NULL && lpData == NULL) {1660 #ifdef DEBUG1661 WriteLog("USER32: lpOutputFunc == NULL && lpData == NULL\n");1662 #endif1663 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 DEBUG1685 WriteLog("USER32: GrayStringW, not completely implemented\n");1686 #endif1687 1688 if(lpOutputFunc == NULL && lpData == NULL) {1689 #ifdef DEBUG1690 WriteLog("USER32: lpOutputFunc == NULL && lpData == NULL\n");1691 #endif1692 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 //******************************************************************************1710 1647 //****************************************************************************** 1711 1648 #if 0 … … 1855 1792 /* Message and Message Queue Functions */ 1856 1793 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 DEBUG1882 WriteLog("USER32: TabbedTextOutA\n");1883 #endif1884 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 DEBUG1894 WriteLog("USER32: TabbedTextOutW\n");1895 #endif1896 rc = O32_TabbedTextOut(hdc,x,y,astring,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin);1897 FreeAsciiString(astring);1898 return rc;1899 }1900 1794 1901 1795 /* Device Context Functions */
Note:
See TracChangeset
for help on using the changeset viewer.