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.

44 lines
1.2 KiB

  1. /* File: C:|WACKER\TDLL\BV_TEXT.HH (Created: 11-JAN-1994)
  2. * Created from:
  3. * File: C:\HA5G\ha5g\s_text.h (Created: 27-SEP-1991)
  4. *
  5. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  6. * All rights reserved
  7. *
  8. * $Revision: 1 $
  9. * $Date: 10/05/98 12:37p $
  10. */
  11. typedef VOID (CALLBACK *STXT_OWNERDRAW)(HWND, HDC);
  12. struct s_text
  13. {
  14. ULONG ulCheck; /* Validity check field */
  15. ULONG cBackGround; /* Fill color for background */
  16. ULONG cTextColor; /* Color to use for text display */
  17. ULONG cUpperEdge; /* Upper and left edge 3D border color */
  18. ULONG cLowerEdge; /* Lower and right edge 3D border color */
  19. USHORT usDepth;
  20. LPTSTR pszText; /* Text to be displayed */
  21. HFONT hFont; /* Text font used to draw text */
  22. INT iFontHeight; /* Used for vertical centering */
  23. STXT_OWNERDRAW fpOwnerDraw; /* pointer to ownerdraw proc. */
  24. };
  25. #define STEXT_VALID 0x78745374
  26. typedef struct s_text STEXT;
  27. typedef STEXT *LPSTEXT;
  28. #define STEXT_OK(x) ((x!=NULL)&&(x->ulCheck==STEXT_VALID))
  29. extern VOID stxtDrawBeveledText(
  30. HDC hdc,
  31. HFONT hNewFont,
  32. LPRECT lpRc,
  33. USHORT usWidth,
  34. DWORD dwStyle,
  35. ULONG FAR *pulColors,
  36. LPTSTR pszText
  37. );