home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / mixapp / tlb.h < prev   
C/C++ Source or Header  |  1997-10-05  |  3KB  |  135 lines

  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 - 1997 Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. //  tlb.h
  13. //
  14. //==========================================================================;
  15.  
  16. #ifndef _INC_TLB
  17. #define _INC_TLB                    // #defined if file has been included
  18.  
  19. #ifndef RC_INVOKED
  20. #pragma warning(disable:4103)
  21. #pragma pack(1)                     // assume byte packing throughout
  22. #endif
  23.  
  24. #ifndef EXTERN_C
  25. #ifdef __cplusplus
  26.     #define EXTERN_C extern "C"
  27. #else
  28.     #define EXTERN_C extern
  29. #endif
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C"                          // assume C declarations for C++
  34. {
  35. #endif
  36.  
  37. //
  38. //  for compiling Unicode
  39. //
  40. #ifndef SIZEOF
  41. #ifdef UNICODE
  42.     #define SIZEOF(x)       (sizeof(x)/sizeof(WCHAR))
  43. #else
  44.     #define SIZEOF(x)       sizeof(x)
  45. #endif
  46. #endif
  47.  
  48.  
  49. //
  50. //
  51. //
  52. //
  53. typedef struct tTABBEDLISTBOX
  54. {
  55.     HWND            hlb;
  56.  
  57.     int             nFontHeight;
  58.     RECT            rc;
  59.  
  60.     UINT            uTabStops;
  61.     PINT            panTabs;
  62.     PINT            panTitleTabs;
  63.  
  64.     UINT            cchTitleText;
  65.     PTSTR           pszTitleText;
  66.  
  67. } TABBEDLISTBOX, *PTABBEDLISTBOX;
  68.  
  69.  
  70. #define TLB_MAX_TAB_STOPS           20      // max number of columns
  71. #define TLB_MAX_TITLE_CHARS         512
  72.  
  73.  
  74. //
  75. //
  76. //
  77. //
  78. //
  79. BOOL FAR PASCAL TlbPaint
  80. (
  81.     PTABBEDLISTBOX          ptlb,
  82.     HWND                    hwnd,
  83.     HDC                     hdc
  84. );
  85.  
  86. BOOL FAR PASCAL TlbMove
  87. (
  88.     PTABBEDLISTBOX          ptlb,
  89.     PRECT                   prc,
  90.     BOOL                    fRedraw
  91. );
  92.  
  93. HFONT FAR PASCAL TlbSetFont
  94. (
  95.     PTABBEDLISTBOX          ptlb,
  96.     HFONT                   hfont,
  97.     BOOL                    fRedraw
  98. );
  99.  
  100. BOOL FAR PASCAL TlbSetTitleAndTabs
  101. (
  102.     PTABBEDLISTBOX          ptlb,
  103.     PTSTR                   pszTitleFormat,
  104.     BOOL                    fRedraw
  105. );
  106.  
  107. PTABBEDLISTBOX FAR PASCAL TlbDestroy
  108. (
  109.     PTABBEDLISTBOX          ptlb
  110. );
  111.  
  112. PTABBEDLISTBOX FAR PASCAL TlbCreate
  113. (
  114.     HWND                    hwnd,
  115.     int                     nId,
  116.     PRECT                   prc
  117. );
  118.  
  119.  
  120. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  121. //
  122. //
  123. //
  124. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  125.  
  126. #ifndef RC_INVOKED
  127. #pragma pack()                      // revert to default packing
  128. #endif
  129.  
  130. #ifdef __cplusplus
  131. }                                   // end of extern "C" {
  132. #endif
  133.  
  134. #endif // _INC_TLB
  135.