home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / PMAVIO.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  6KB  |  154 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 defined(__IBMC__)
  21.    #pragma info( none )
  22.    #ifndef __CHKHDR__
  23.       #pragma info( none )
  24.    #endif
  25.    #pragma info( restore )
  26. #endif    /* __IBMC__ */
  27.  
  28. #ifdef __cplusplus
  29.       extern "C" {
  30. #endif
  31. /* XLATON */
  32.  
  33. #define AVIO_INCLUDED
  34.  
  35.  
  36. /* XLATOFF */
  37.  
  38. #define Vio16Associate         VIO16ASSOCIATE
  39. #define Vio16CreateLogFont     VIO16CREATELOGFONT
  40. #define Vio16CreatePS          VIO16CREATEPS
  41. #define Vio16DeleteSetId       VIO16DELETESETID
  42. #define Vio16DestroyPS         VIO16DESTROYPS
  43. #define Vio16GetDeviceCellSize VIO16GETDEVICECELLSIZE
  44. #define Vio16GetOrg            VIO16GETORG
  45. #define Vio16QueryFonts        VIO16QUERYFONTS
  46. #define Vio16QuerySetIds       VIO16QUERYSETIDS
  47. #define Vio16SetDeviceCellSize VIO16SETDEVICECELLSIZE
  48. #define Vio16SetOrg            VIO16SETORG
  49. #define Vio16ShowPS            VIO16SHOWPS
  50. #define Win16DefAVioWindowProc WIN16DEFAVIOWINDOWPROC
  51.  
  52. #define VioAssociate           VIO16ASSOCIATE
  53. #define VioCreateLogFont       VIO16CREATELOGFONT
  54. #define VioCreatePS            VIO16CREATEPS
  55. #define VioDeleteSetId         VIO16DELETESETID
  56. #define VioDestroyPS           VIO16DESTROYPS
  57. #define VioGetDeviceCellSize   VIO16GETDEVICECELLSIZE
  58. #define VioGetOrg              VIO16GETORG
  59. #define VioQueryFonts          VIO16QUERYFONTS
  60. #define VioQuerySetIds         VIO16QUERYSETIDS
  61. #define VioSetDeviceCellSize   VIO16SETDEVICECELLSIZE
  62. #define VioSetOrg              VIO16SETORG
  63. #define VioShowPS              VIO16SHOWPS
  64. #define WinDefAVioWindowProc   WIN16DEFAVIOWINDOWPROC
  65. /* XLATON */
  66.  
  67. typedef USHORT          HVPS;        /* hpvs */
  68. typedef HVPS   FAR16PTR PHVPS;    /* phpvs */
  69.  
  70. USHORT  APIENTRY16 VioAssociate(HDC hdc,
  71.                                 HVPS hvps);
  72.  
  73. USHORT  APIENTRY16 VioCreateLogFont(FATTRS FAR16PTR pfatattrs,
  74.                                     LONG llcid,
  75.                                     STR8 FAR16PTR pName,
  76.                                     HVPS hvps);
  77.  
  78. USHORT  APIENTRY16 VioCreatePS(PHVPS phvps,
  79.                                SHORT sdepth,
  80.                                SHORT swidth,
  81.                                SHORT sFormat,
  82.                                SHORT sAttrs,
  83.                                HVPS hvpsReserved);
  84.  
  85. USHORT  APIENTRY16 VioDeleteSetId(LONG llcid,
  86.                                   HVPS hvps);
  87.  
  88. USHORT  APIENTRY16 VioDestroyPS(HVPS hvps);
  89.  
  90. USHORT  APIENTRY16 VioGetDeviceCellSize(PSHORT16 psHeight,
  91.                                         PSHORT16 psWidth,
  92.                                         HVPS hvps);
  93.  
  94. USHORT  APIENTRY16 VioGetOrg(PSHORT16 psRow,
  95.                              PSHORT16 psColumn,
  96.                              HVPS hvps);
  97.  
  98. USHORT  APIENTRY16 VioQueryFonts(PLONG16 plRemfonts,
  99.                                  FONTMETRICS FAR16PTR afmMetrics,
  100.                                  LONG lMetricsLength,
  101.                                  PLONG plFonts,
  102.                                  PSZ16 pszFacename,
  103.                                  ULONG flOptions,
  104.                                  HVPS hvps);
  105.  
  106. USHORT  APIENTRY16 VioQuerySetIds(PLONG16 allcids,
  107.                                   STR8 FAR16PTR pNames,
  108.                                   PLONG16 alTypes,
  109.                                   LONG lcount,
  110.                                   HVPS hvps);
  111.  
  112. USHORT  APIENTRY16 VioSetDeviceCellSize(SHORT sHeight,
  113.                                         SHORT sWidth,
  114.                                         HVPS hvps);
  115.  
  116. USHORT  APIENTRY16 VioSetOrg(SHORT sRow,
  117.                              SHORT sColumn,
  118.                              HVPS hvps);
  119.  
  120. USHORT  APIENTRY16 VioShowPS(SHORT sDepth,
  121.                              SHORT sWidth,
  122.                              SHORT soffCell,
  123.                              HVPS hvps);
  124.  
  125. /************************ Public Function *******************************
  126. * WinDefAVioWindowProc -- Default message processing for AVio PS's
  127. ************************************************************************/
  128. /* mp1 and mp2 are defined as ULONG because MPARAM is a pointer type and */
  129. /* 32-bit compilers will thunk pointer types passed to 16-bit routines.  */
  130. /* This is not what is desired for WM_SIZE processing so we will declare */
  131. /* the function with ULONGs, non-pointer types.                          */
  132.  
  133. MRESULT APIENTRY16 WinDefAVioWindowProc(HWND hwnd,
  134.                                         USHORT msg,
  135.                                         ULONG mp1,
  136.                                         ULONG mp2);
  137.  
  138. /* XLATOFF */
  139. #ifdef __cplusplus
  140.         }
  141. #endif
  142.  
  143. #if defined(__IBMC__)
  144.    #pragma info( none )
  145.    #ifndef __CHKHDR__
  146.       #pragma info( restore )
  147.    #endif
  148.    #pragma info( restore )
  149. #endif    /* __IBMC__ */
  150.  
  151. /* XLATON */
  152.  
  153. /**************************** end of file **********************************/
  154.