home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / PMAVIO.H < prev    next >
C/C++ Source or Header  |  1999-04-30  |  5KB  |  151 lines

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: PMAVIO.H
  4. *
  5. * OS/2 Presentation Manager AVIO constants, types and function declarations
  6. *
  7. * Copyright (c) International Business Machines Corporation 1981, 1988-1992
  8. *
  9. * ===========================================================================
  10. *
  11. * Comments at the end of each typedef line give the name tags used in
  12. * the assembler include version of this file.
  13. *
  14. * The assembler include version of this file excludes lines between XLATOFF
  15. * and XLATON comments.
  16. *
  17. \***************************************************************************/
  18.  
  19. /* XLATOFF */
  20. #if __IBMC__ || __IBMCPP__
  21.    #pragma info( none )
  22.    #ifndef __CHKHDR__
  23.       #pragma info( none )
  24.    #endif
  25.    #pragma info( restore )
  26. #endif
  27. #ifdef __cplusplus
  28.       extern "C" {
  29. #endif
  30. /* XLATON */
  31.  
  32. #define AVIO_INCLUDED
  33.  
  34.  
  35. /* XLATOFF */
  36.  
  37. #define Vio16Associate         VIO16ASSOCIATE
  38. #define Vio16CreateLogFont     VIO16CREATELOGFONT
  39. #define Vio16CreatePS          VIO16CREATEPS
  40. #define Vio16DeleteSetId       VIO16DELETESETID
  41. #define Vio16DestroyPS         VIO16DESTROYPS
  42. #define Vio16GetDeviceCellSize VIO16GETDEVICECELLSIZE
  43. #define Vio16GetOrg            VIO16GETORG
  44. #define Vio16QueryFonts        VIO16QUERYFONTS
  45. #define Vio16QuerySetIds       VIO16QUERYSETIDS
  46. #define Vio16SetDeviceCellSize VIO16SETDEVICECELLSIZE
  47. #define Vio16SetOrg            VIO16SETORG
  48. #define Vio16ShowPS            VIO16SHOWPS
  49. #define Win16DefAVioWindowProc WIN16DEFAVIOWINDOWPROC
  50.  
  51. #define VioAssociate           VIO16ASSOCIATE
  52. #define VioCreateLogFont       VIO16CREATELOGFONT
  53. #define VioCreatePS            VIO16CREATEPS
  54. #define VioDeleteSetId         VIO16DELETESETID
  55. #define VioDestroyPS           VIO16DESTROYPS
  56. #define VioGetDeviceCellSize   VIO16GETDEVICECELLSIZE
  57. #define VioGetOrg              VIO16GETORG
  58. #define VioQueryFonts          VIO16QUERYFONTS
  59. #define VioQuerySetIds         VIO16QUERYSETIDS
  60. #define VioSetDeviceCellSize   VIO16SETDEVICECELLSIZE
  61. #define VioSetOrg              VIO16SETORG
  62. #define VioShowPS              VIO16SHOWPS
  63. #define WinDefAVioWindowProc   WIN16DEFAVIOWINDOWPROC
  64. /* XLATON */
  65.  
  66. typedef USHORT HVPS;        /* hpvs */
  67. typedef HVPS *PHVPS;    /* phpvs */
  68.  
  69. USHORT  APIENTRY16 VioAssociate(HDC hdc,
  70.                                 HVPS hvps);
  71.  
  72. USHORT  APIENTRY16 VioCreateLogFont(PFATTRS pfatattrs,
  73.                                     LONG llcid,
  74.                                     PSTR8 pName,
  75.                                     HVPS hvps);
  76.  
  77. USHORT  APIENTRY16 VioCreatePS(PHVPS phvps,
  78.                                SHORT sdepth,
  79.                                SHORT swidth,
  80.                                SHORT sFormat,
  81.                                SHORT sAttrs,
  82.                                HVPS hvpsReserved);
  83.  
  84. USHORT  APIENTRY16 VioDeleteSetId(LONG llcid,
  85.                                   HVPS hvps);
  86.  
  87. USHORT  APIENTRY16 VioDestroyPS(HVPS hvps);
  88.  
  89. USHORT  APIENTRY16 VioGetDeviceCellSize(PSHORT psHeight,
  90.                                         PSHORT psWidth,
  91.                                         HVPS hvps);
  92.  
  93. USHORT  APIENTRY16 VioGetOrg(PSHORT psRow,
  94.                              PSHORT psColumn,
  95.                              HVPS hvps);
  96.  
  97. USHORT  APIENTRY16 VioQueryFonts(PLONG plRemfonts,
  98.                                  PFONTMETRICS afmMetrics,
  99.                                  LONG lMetricsLength,
  100.                                  PLONG plFonts,
  101.                                  PSZ pszFacename,
  102.                                  ULONG flOptions,
  103.                                  HVPS hvps);
  104.  
  105. USHORT  APIENTRY16 VioQuerySetIds(PLONG allcids,
  106.                                   PSTR8 pNames,
  107.                                   PLONG alTypes,
  108.                                   LONG lcount,
  109.                                   HVPS hvps);
  110.  
  111. USHORT  APIENTRY16 VioSetDeviceCellSize(SHORT sHeight,
  112.                                         SHORT sWidth,
  113.                                         HVPS hvps);
  114.  
  115. USHORT  APIENTRY16 VioSetOrg(SHORT sRow,
  116.                              SHORT sColumn,
  117.                              HVPS hvps);
  118.  
  119. USHORT  APIENTRY16 VioShowPS(SHORT sDepth,
  120.                              SHORT sWidth,
  121.                              SHORT soffCell,
  122.                              HVPS hvps);
  123.  
  124. /************************ Public Function *******************************
  125. * WinDefAVioWindowProc -- Default message processing for AVio PS's
  126. ************************************************************************/
  127. /* mp1 and mp2 are defined as ULONG because MPARAM is a pointer type and */
  128. /* 32-bit compilers will thunk pointer types passed to 16-bit routines.  */
  129. /* This is not what is desired for WM_SIZE processing so we will declare */
  130. /* the function with ULONGs, non-pointer types.                          */
  131.  
  132. MRESULT APIENTRY16 WinDefAVioWindowProc(HWND hwnd,
  133.                                         USHORT msg,
  134.                                         ULONG mp1,
  135.                                         ULONG mp2);
  136.  
  137. /* XLATOFF */
  138. #ifdef __cplusplus
  139.         }
  140. #endif
  141. #if __IBMC__ || __IBMCPP__
  142.    #pragma info( none )
  143.    #ifndef __CHKHDR__
  144.       #pragma info( restore )
  145.    #endif
  146.    #pragma info( restore )
  147. #endif
  148. /* XLATON */
  149.  
  150. /**************************** end of file **********************************/
  151.