Source code of Windows XP (NT5)
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.

159 lines
3.3 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1994 Microsoft Corporation. All Rights Reserved.
  9. //--------------------------------------------------------------------------;
  10. //
  11. // tlb.h
  12. //
  13. // Description:
  14. //
  15. //
  16. //
  17. //==========================================================================;
  18. #ifndef _INC_TLB
  19. #define _INC_TLB // #defined if file has been included
  20. #ifndef RC_INVOKED
  21. #pragma pack(1) // assume byte packing throughout
  22. #endif
  23. #ifndef EXTERN_C
  24. #ifdef __cplusplus
  25. #define EXTERN_C extern "C"
  26. #else
  27. #define EXTERN_C extern
  28. #endif
  29. #endif
  30. #ifdef __cplusplus
  31. extern "C" // assume C declarations for C++
  32. {
  33. #endif
  34. #ifdef WIN32
  35. //
  36. // for compiling Unicode
  37. //
  38. #ifndef SIZEOF
  39. #ifdef UNICODE
  40. #define SIZEOF(x) (sizeof(x)/sizeof(WCHAR))
  41. #else
  42. #define SIZEOF(x) sizeof(x)
  43. #endif
  44. #endif
  45. #else
  46. //
  47. // stuff for Unicode in Win 32--make it a noop in Win 16
  48. //
  49. #ifndef TEXT
  50. #define TEXT(a) a
  51. #endif
  52. #ifndef SIZEOF
  53. #define SIZEOF(x) sizeof(x)
  54. #endif
  55. #ifndef _TCHAR_DEFINED
  56. #define _TCHAR_DEFINED
  57. typedef char TCHAR, *PTCHAR;
  58. typedef unsigned char TBYTE, *PTUCHAR;
  59. typedef PSTR PTSTR, PTCH;
  60. typedef LPSTR LPTSTR, LPTCH;
  61. typedef LPCSTR LPCTSTR;
  62. #endif
  63. #endif
  64. //
  65. //
  66. //
  67. //
  68. typedef struct tTABBEDLISTBOX
  69. {
  70. HWND hlb;
  71. int nFontHeight;
  72. RECT rc;
  73. UINT uTabStops;
  74. PINT panTabs;
  75. PINT panTitleTabs;
  76. UINT cchTitleText;
  77. PTSTR pszTitleText;
  78. } TABBEDLISTBOX, *PTABBEDLISTBOX;
  79. #define TLB_MAX_TAB_STOPS 20 // max number of columns
  80. #define TLB_MAX_TITLE_CHARS 512
  81. //
  82. //
  83. //
  84. //
  85. //
  86. BOOL FAR PASCAL TlbPaint
  87. (
  88. PTABBEDLISTBOX ptlb,
  89. HWND hwnd,
  90. HDC hdc
  91. );
  92. BOOL FAR PASCAL TlbMove
  93. (
  94. PTABBEDLISTBOX ptlb,
  95. PRECT prc,
  96. BOOL fRedraw
  97. );
  98. HFONT FAR PASCAL TlbSetFont
  99. (
  100. PTABBEDLISTBOX ptlb,
  101. HFONT hfont,
  102. BOOL fRedraw
  103. );
  104. BOOL FAR PASCAL TlbSetTitleAndTabs
  105. (
  106. PTABBEDLISTBOX ptlb,
  107. PTSTR pszTitleFormat,
  108. BOOL fRedraw
  109. );
  110. PTABBEDLISTBOX FAR PASCAL TlbDestroy
  111. (
  112. PTABBEDLISTBOX ptlb
  113. );
  114. PTABBEDLISTBOX FAR PASCAL TlbCreate
  115. (
  116. HWND hwnd,
  117. int nId,
  118. PRECT prc
  119. );
  120. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  121. //
  122. //
  123. //
  124. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  125. #ifndef RC_INVOKED
  126. #pragma pack() // revert to default packing
  127. #endif
  128. #ifdef __cplusplus
  129. } // end of extern "C" {
  130. #endif
  131. #endif // _INC_TLB