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