home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / apl2 / aplpm.h__ / aplpm.h
Encoding:
C/C++ Source or Header  |  1993-12-15  |  5.2 KB  |  117 lines

  1. /*-m-aplpm-----------------------------------------------------------
  2.  *
  3.  * Module Name: aplpm.h
  4.  *
  5.  * Descriptive Name: APL2 to Presentation Manager
  6.  *
  7.  * Copyright:   APL2 for OS/2           Version 1.0
  8.  *              Licensed Materials - Property of IBM
  9.  *              (C) COPYRIGHT IBM CORP. 1994
  10.  *
  11.  * Function: Header file for using APL2/2 PM utilities
  12.  *
  13.  * Notes:
  14.  *
  15.  *    Dependencies: None
  16.  *
  17.  *    Restrictions: None
  18.  *
  19.  * Module Type: Header
  20.  *
  21.  * Change Activity:
  22.  *
  23.  *-Z----------------------------------------------------------------*/
  24.  
  25. /*******************************************************************/
  26. /*                                                                 */
  27. /* Header file for using APL2/2 PM utilities                       */
  28. /*                                                                 */
  29. /*******************************************************************/
  30.  
  31. #define APLPM_DLL    "aplpm"
  32. #define PANEL_HELPUSINGHELPKEYS   25000
  33.  
  34. /*******************************************************************/
  35. /*                                                                 */
  36. /* Prototypes for APL utilities                                    */
  37. /*                                                                 */
  38. /*******************************************************************/
  39.  
  40. ULONG AplExec(PSZ Command,PULONG CmdRc,BOOL Visible,BOOL Leave,HEV HevCancel) ;
  41. BOOL    APIENTRY AplFileDlg(HWND Owner,ULONG Style,CHAR FileName[CCHMAXPATH],USHORT Id,PULONG FileRc) ;
  42. BOOL    APIENTRY AplFontDlg(HWND Target,USHORT Id) ;
  43. MRESULT EXPENTRY AplKey(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) ;
  44. MRESULT EXPENTRY AplPrintObject(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) ;
  45.  
  46. BOOL             AplAllocWindowBytes(HWND hwnd,ULONG length) ;
  47. BOOL             AplSetWindowPtr(HWND hwnd,ULONG Offset,PVOID Ptr) ;
  48. PVOID            AplQueryWindowPtr(HWND hwnd,ULONG Offset) ;
  49. BOOL             AplFreeWindowBytes(HWND hwnd) ;
  50.  
  51. /*******************************************************************/
  52. /*                                                                 */
  53. /* Defines and declarations for use with APL keyboard procedure    */
  54. /*                                                                 */
  55. /*******************************************************************/
  56.  
  57. /* Messages for controlling the keyboard handler */
  58. #define APLKEY_BYTES_LENGTH    4
  59. #define APLKEY_BYTES_OFFSET    0
  60.  
  61. /* Messages for controlling the keyboard handler */
  62. #define APLKEY_MSG_INIT           WM_USER+1
  63. #define APLKEY_MSG_SELECT         WM_USER+2
  64. #define APLKEY_MSG_MODIFY         WM_USER+3
  65. #define APLKEY_MSG_TERM           WM_USER+4
  66.  
  67. /*******************************************************************/
  68. /*                                                                 */
  69. /* Defines and declarations for use with APL Print control         */
  70. /*                                                                 */
  71. /*******************************************************************/
  72. #define APLPRT_CLASS            "APL2 PRINT"
  73. #define APLPRT_RESERVED         8
  74.  
  75. /**********************************************************************
  76. *                                                                     *
  77. * APL Print Messages                                                  *
  78. *                                                                     *
  79. **********************************************************************/
  80. #define APLPRT_OPEN_DOCUMENT    WM_USER+11
  81. #define APLPRT_SELECT_PRINTER   WM_USER+12
  82. #define APLPRT_PRINT_SENTENCE   WM_USER+13
  83. #define APLPRT_NEWLINE          WM_USER+14
  84. #define APLPRT_NEWPAGE          WM_USER+15
  85. #define APLPRT_CLOSE_DOCUMENT   WM_USER+16
  86. #define APLPRT_CANCEL_DOCUMENT  WM_USER+17
  87. #define APLPRT_SET_INDENT       WM_USER+18
  88. #define APLPRT_SET_WORDBREAK    WM_USER+19
  89. #define APLPRT_SET_HEADING      WM_USER+20
  90. #define APLPRT_SET_FOOTING      WM_USER+21
  91. #define APLPRT_SET_FONT         WM_USER+22
  92. #define APLPRT_SET_PAGENUMBERS  WM_USER+24
  93. #define APLPRT_QUERY_PAGENUMBER WM_USER+25
  94. #define APLPRT_SET_COLOR        WM_USER+28
  95. #define APLPRT_QUERY_LENGTH     WM_USER+29
  96. #define APLPRT_SET_MARGIN       WM_USER+30
  97. #define APLPRT_SET_LINESPACE    WM_USER+31
  98. #define APLPRT_SET_SBCS         WM_USER+32
  99.  
  100. /**********************************************************************
  101. *                                                                     *
  102. * APL Print Font codes                                                *
  103. *                                                                     *
  104. **********************************************************************/
  105. #define APLPRT_FONT_BODY        0
  106. #define APLPRT_FONT_PAGENUMBERS 1
  107. #define APLPRT_FONT_HEADINGS    2
  108. #define APLPRT_FONT_FOOTINGS    3
  109.  
  110. /**********************************************************************
  111. *                                                                     *
  112. * APL Print Notify Codes                                              *
  113. *                                                                     *
  114. **********************************************************************/
  115.  
  116. #define APLPRT_PRINT_CANCELLED  0x00000001L
  117.