Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Copyright (C) Microsoft Corporation, 1994-1995
  4. //
  5. // File: fontlink.cpp
  6. //
  7. // Contents: Exports that we available in downlevel comctrl. Note that
  8. // since v6 runs only on Winnt, we don't need the fonl link stuff
  9. // in this dll any more.
  10. //
  11. //----------------------------------------------------------------------------
  12. #include "ctlspriv.h"
  13. BOOL GetTextExtentPointWrap(HDC hdc, LPCWSTR lpwch, int cch, LPSIZE lpSize)
  14. {
  15. return GetTextExtentPoint(hdc, lpwch, cch, lpSize);
  16. }
  17. BOOL GetTextExtentPoint32Wrap(HDC hdc, LPCWSTR lpwch, int cch, LPSIZE lpSize)
  18. {
  19. return GetTextExtentPointWrap(hdc, lpwch, cch, lpSize);
  20. }
  21. BOOL ExtTextOutWrap(HDC hdc, int xp, int yp, UINT eto, CONST RECT *lprect, LPCWSTR lpwch, UINT cLen, CONST INT *lpdxp)
  22. {
  23. return ExtTextOut(hdc, xp, yp, eto, lprect, lpwch, cLen, lpdxp);
  24. }
  25. BOOL GetCharWidthWrap(HDC hdc, UINT uFirstChar, UINT uLastChar, LPINT lpnWidths)
  26. {
  27. return GetCharWidth(hdc, uFirstChar, uLastChar, lpnWidths);
  28. }
  29. BOOL TextOutWrap(HDC hdc, int xp, int yp, LPCWSTR lpwch, int cLen)
  30. {
  31. return ExtTextOutWrap(hdc, xp, yp, 0, NULL, lpwch, cLen, NULL);
  32. }
  33. int DrawTextExPrivWrap(HDC hdc, LPWSTR lpchText, int cchText, LPRECT lprc,
  34. UINT dwDTformat, LPDRAWTEXTPARAMS lpDTparams)
  35. {
  36. return DrawTextEx(hdc, lpchText, cchText, lprc, dwDTformat, lpDTparams);
  37. }
  38. int DrawTextWrap(HDC hdc, LPCWSTR lpchText, int cchText, LPRECT lprc, UINT format)
  39. {
  40. return DrawText(hdc, lpchText, cchText, lprc, format);
  41. }