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