home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / PMHELP.H < prev    next >
Text File  |  1995-04-14  |  26KB  |  558 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /****************************** Module Header ******************************\
  13. *
  14. * Module Name: PMHELP.H
  15. *
  16. * OS/2 Presentation Manager Information Presentation Facility,
  17. * Help Manager declarations.
  18. *
  19. *
  20. * ===========================================================================
  21. *
  22. * The following symbols are used in this file for conditional sections.
  23. *
  24. *   #define:                To include:
  25. *
  26. *   INCL_WINHELP            Help manager structures and APIs
  27. *   INCL_DDF                Dynamic Data Formatting APIs
  28. *
  29. * ===========================================================================
  30. *
  31. * Comments at the end of each typedef line give the name tags used in
  32. * the assembler include version of this file.
  33. *
  34. * The assembler include version of this file excludes lines between XLATOFF
  35. * and XLATON comments.
  36. *
  37. #ifndef __IBMC__
  38.    * The public version of this file (as shipped with the OS/2 Toolkit
  39.    * product) excludes all non 32-bit material marked in this file
  40.    * as well as any areas specifically marked with __IBMC__ conditional
  41.    * sections - including this paragraph. The H2IBMH rexx command file
  42.    * removes these sections.
  43. #endif
  44. \***************************************************************************/
  45.  
  46. /* XLATOFF */
  47. #ifdef __IBMC__
  48.    #pragma checkout( suspend )
  49.       #ifndef __CHKHDR__
  50.          #pragma checkout( suspend )
  51.       #endif
  52.    #pragma checkout( resume )
  53. #endif
  54. /* XLATON */
  55.  
  56. /* XLATOFF */
  57. #ifndef PMHELP_INCLUDED
  58.    /* XLATON */
  59.    #define PMHELP_INCLUDED
  60.  
  61.  
  62.    #ifndef INCL_32         /* If neither INCL_32 or INCL_16 set already */
  63.       #ifndef INCL_16      /* find out from compiler if 32-bit or not.  */
  64.         #ifdef M_I386
  65.            #define INCL_32 /* Compiling for 32-bit */
  66.         #else
  67.            #define INCL_16 /* Compiling for 16-bit */
  68.         #endif
  69.      #endif
  70.    #endif
  71.  
  72.    /************************************************************************/
  73.    /* HelpSubTable entry structure                                         */
  74.    /************************************************************************/
  75.    typedef USHORT HELPSUBTABLE;
  76.    typedef HELPSUBTABLE FAR *PHELPSUBTABLE;
  77.  
  78.    /************************************************************************/
  79.    /* HelpTable entry structure                                            */
  80.    /*                                                                      */
  81.    /*  Pack the structure HELPTABLE so that it is identical in the 32-Bit  */
  82.    /*  and 16-Bit world.  We have to do this because the HelpTable can     */
  83.    /*  reside either in memory or in the application's resources.          */
  84.    /************************************************************************/
  85.  
  86.    /* XLATOFF */
  87.    #pragma pack(2)   /* pack on word boundary */
  88.    /* XLATON */
  89.  
  90.    typedef struct _HELPTABLE {     /* ht */
  91.       USHORT          idAppWindow;
  92.       PHELPSUBTABLE   phstHelpSubTable;
  93.       USHORT          idExtPanel;
  94.    } HELPTABLE;
  95.    typedef HELPTABLE FAR *PHELPTABLE;
  96.  
  97.    /* XLATOFF */
  98.    #pragma pack()    /* reset to default packing */
  99.    /* XLATON */
  100.  
  101.  
  102.    /************************************************************************/
  103.    /* IPF Initialization Structure used on the                             */
  104.    /* WinCreateHelpInstance() call.                                        */
  105.    /************************************************************************/
  106.  
  107.    #ifdef INCL_32
  108.       typedef struct _HELPINIT {    /* hinit 32 bit */
  109.          ULONG        cb;
  110.          ULONG        ulReturnCode;
  111.          PSZ          pszTutorialName;
  112.          PHELPTABLE   phtHelpTable;
  113.          HMODULE      hmodHelpTableModule;
  114.          HMODULE      hmodAccelActionBarModule;
  115.          ULONG        idAccelTable;
  116.          ULONG        idActionBar;
  117.          PSZ          pszHelpWindowTitle;
  118.          ULONG        fShowPanelId;
  119.          PSZ          pszHelpLibraryName;
  120.       } HELPINIT;
  121.    #else
  122.       typedef struct _HELPINIT {    /* hinit 16 bit */
  123.          USHORT       cb;
  124.          ULONG        ulReturnCode;
  125.          PSZ          pszTutorialName;
  126.          PHELPTABLE   phtHelpTable;
  127.          USHORT       hmodHelpTableModule;
  128.          USHORT       hmodAccelActionBarModule;
  129.          USHORT       idAccelTable;
  130.          USHORT       idActionBar;
  131.          PSZ          pszHelpWindowTitle;
  132.          USHORT       usShowPanelId;
  133.          PSZ          pszHelpLibraryName;
  134.       } HELPINIT;
  135.    #endif
  136.    typedef HELPINIT FAR *PHELPINIT;
  137.  
  138.  
  139.    /************************************************************************/
  140.    /* Search parent chain indicator for HM_SET_ACTIVE_WINDOW message.      */
  141.    /************************************************************************/
  142.    #define HWND_PARENT         (HWND)NULL
  143.  
  144.    /************************************************************************/
  145.    /* Constants used to define whether user wants to display panel using   */
  146.    /* panel number or panel name.                                          */
  147.    /************************************************************************/
  148.    #define HM_RESOURCEID             0
  149.    #define HM_PANELNAME              1
  150.  
  151.    #define HMPANELTYPE_NUMBER        0
  152.    #define HMPANELTYPE_NAME          1
  153.  
  154.    /************************************************************************/
  155.    /* Constants used to define how the panel IDs are displayed on          */
  156.    /* help panels.                                                         */
  157.    /************************************************************************/
  158.    #define CMIC_HIDE_PANEL_ID        0x0000
  159.    #define CMIC_SHOW_PANEL_ID        0x0001
  160.    #define CMIC_TOGGLE_PANEL_ID      0x0002
  161.  
  162.    /************************************************************************/
  163.    /* Window Help API declarations.                                        */
  164.    /************************************************************************/
  165.    BOOL APIENTRY  WinDestroyHelpInstance(HWND hwndHelpInstance);
  166.  
  167.    HWND APIENTRY  WinCreateHelpInstance(HAB hab,
  168.                                         PHELPINIT phinitHMInitStructure);
  169.  
  170.    BOOL APIENTRY  WinAssociateHelpInstance(HWND hwndHelpInstance,
  171.                                            HWND hwndApp);
  172.  
  173.    HWND APIENTRY  WinQueryHelpInstance(HWND hwndApp);
  174.  
  175.    #ifdef INCL_32
  176.       BOOL APIENTRY  WinLoadHelpTable(HWND hwndHelpInstance,
  177.                                       ULONG idHelpTable,
  178.                                       HMODULE Module);
  179.    #else
  180.       BOOL APIENTRY  WinLoadHelpTable(HWND hwndHelpInstance,
  181.                                       USHORT idHelpTable,
  182.                                       HMODULE Module);
  183.    #endif
  184.  
  185.    BOOL APIENTRY  WinCreateHelpTable(HWND hwndHelpInstance,
  186.                                      PHELPTABLE phtHelpTable);
  187.  
  188.    /************************************************************************/
  189.    /* IPF message base.                                                    */
  190.    /************************************************************************/
  191.    #define HM_MSG_BASE               0x0220
  192.  
  193.    /************************************************************************/
  194.    /* Messages applications can send to the IPF.                           */
  195.    /************************************************************************/
  196.    #define HM_DISMISS_WINDOW              HM_MSG_BASE+0x0001
  197.    #define HM_DISPLAY_HELP                HM_MSG_BASE+0x0002
  198.    #define HM_EXT_HELP                    HM_MSG_BASE+0x0003
  199.    #define HM_GENERAL_HELP                HM_EXT_HELP
  200.    #define HM_SET_ACTIVE_WINDOW           HM_MSG_BASE+0x0004
  201.    #define HM_LOAD_HELP_TABLE             HM_MSG_BASE+0x0005
  202.    #define HM_CREATE_HELP_TABLE           HM_MSG_BASE+0x0006
  203.    #define HM_SET_HELP_WINDOW_TITLE       HM_MSG_BASE+0x0007
  204.    #define HM_SET_SHOW_PANEL_ID           HM_MSG_BASE+0x0008
  205.    #define HM_REPLACE_HELP_FOR_HELP       HM_MSG_BASE+0x0009
  206.    #define HM_REPLACE_USING_HELP          HM_REPLACE_HELP_FOR_HELP
  207.    #define HM_HELP_INDEX                  HM_MSG_BASE+0x000a
  208.    #define HM_HELP_CONTENTS               HM_MSG_BASE+0x000b
  209.    #define HM_KEYS_HELP                   HM_MSG_BASE+0x000c
  210.    #define HM_SET_HELP_LIBRARY_NAME       HM_MSG_BASE+0x000d
  211.  
  212.    #define HM_SET_OBJCOM_WINDOW           HM_MSG_BASE+0x0018
  213.    #define HM_UPDATE_OBJCOM_WINDOW_CHAIN  HM_MSG_BASE+0x0019
  214.    #define HM_QUERY_DDF_DATA              HM_MSG_BASE+0x001a
  215.    #define HM_INVALIDATE_DDF_DATA         HM_MSG_BASE+0x001b
  216.    #define HM_QUERY                       HM_MSG_BASE+0x001c
  217.    #define HM_SET_COVERPAGE_SIZE          HM_MSG_BASE+0x001d
  218.  
  219.    /************************************************************************/
  220.    /* Constants used to query the info from IPF in HM_QUERY message        */
  221.    /************************************************************************/
  222.  
  223.    /* Hi word in lParam 1 */
  224.    #define HMQW_COVERPAGE           0x0001
  225.    #define HMQW_INDEX               0x0002
  226.    #define HMQW_TOC                 0x0003
  227.    #define HMQW_SEARCH              0x0004
  228.    #define HMQW_VIEWPAGES           0x0005
  229.    #define HMQW_LIBRARY             0x0006
  230.    #define HMQW_VIEWPORT            0x0007
  231.    #define HMQW_OBJCOM_WINDOW       0x0008
  232.    #define HMQW_INSTANCE            0x0009
  233.    #define HMQW_ACTIVEVIEWPORT      0x000a
  234.    #define CONTROL_SELECTED         0x000b
  235.  
  236.    #define HMQW_GROUP_VIEWPORT      0x00f1
  237.    #define HMQW_RES_VIEWPORT        0x00f2
  238.    #define USERDATA                 0x00f3
  239.  
  240.    /* Lo word in lParam1 of HMQW_VIEWPORT */
  241.    #define HMQVP_NUMBER             0x0001
  242.    #define HMQVP_NAME               0x0002
  243.    #define HMQVP_GROUP              0x0003
  244.  
  245.    /************************************************************************/
  246.    /* Predefined Control IDs                                               */
  247.    /************************************************************************/
  248.    #define CTRL_PREVIOUS_ID    ((USHORT)0x0001)
  249.    #define CTRL_SEARCH_ID      ((USHORT)0x0002)
  250.    #define CTRL_PRINT_ID       ((USHORT)0x0003)
  251.    #define CTRL_INDEX_ID       ((USHORT)0x0004)
  252.    #define CTRL_CONTENTS_ID    ((USHORT)0x0005)
  253.    #define CTRL_BACK_ID        ((USHORT)0x0006)
  254.    #define CTRL_FORWARD_ID     ((USHORT)0x0007)
  255.    #define CTRL_TUTORIAL_ID    ((USHORT)0x00FF)
  256.  
  257.    #define CTRL_USER_ID_BASE   ((USHORT)257)
  258.  
  259.    /************************************************************************/
  260.    /* Messages the IPF sends to the applications active window             */
  261.    /* as defined by the IPF.                                               */
  262.    /************************************************************************/
  263.  
  264.    #define HM_ERROR                       HM_MSG_BASE+0x000e
  265.    #define HM_HELPSUBITEM_NOT_FOUND       HM_MSG_BASE+0x000f
  266.    #define HM_QUERY_KEYS_HELP             HM_MSG_BASE+0x0010
  267.    #define HM_TUTORIAL                    HM_MSG_BASE+0x0011
  268.    #define HM_EXT_HELP_UNDEFINED          HM_MSG_BASE+0x0012
  269.    #define HM_GENERAL_HELP_UNDEFINED      HM_EXT_HELP_UNDEFINED
  270.    #define HM_ACTIONBAR_COMMAND           HM_MSG_BASE+0x0013
  271.    #define HM_INFORM                      HM_MSG_BASE+0x0014
  272.    #define HM_NOTIFY                      HM_MSG_BASE+0x0022
  273.    #define HM_SET_USERDATA                HM_MSG_BASE+0x0023
  274.    #define HM_CONTROL                     HM_MSG_BASE+0x0024
  275.  
  276.    /************************************************************************/
  277.    /* notify information for HM_NOTIFY                                     */
  278.    /************************************************************************/
  279.    #define OPEN_COVERPAGE        0x0001
  280.    #define OPEN_PAGE             0x0002
  281.    #define SWAP_PAGE             0x0003
  282.    #define OPEN_TOC              0x0004
  283.    #define OPEN_INDEX            0x0005
  284.    #define OPEN_HISTORY          0x0006
  285.    #define OPEN_SEARCH_HIT_LIST  0x0007
  286.    #define OPEN_LIBRARY          0x0008
  287.    #define HELP_REQUESTED        0x0009
  288.  
  289.    /************************************************************************/
  290.    /* HMERR_NO_FRAME_WND_IN_CHAIN - There is no frame window in the        */
  291.    /* window chain from which to find or set the associated help           */
  292.    /* instance.                                                            */
  293.    /************************************************************************/
  294.    #define  HMERR_NO_FRAME_WND_IN_CHAIN                0x00001001L
  295.  
  296.    /***********************************************************************/
  297.    /* HMERR_INVALID_ASSOC_APP_WND - The application window handle         */
  298.    /* specified on the WinAssociateHelpInstance() call is not a valid     */
  299.    /* window handle.                                                      */
  300.    /***********************************************************************/
  301.    #define  HMERR_INVALID_ASSOC_APP_WND                0x00001002L
  302.  
  303.    /***********************************************************************/
  304.    /* HMERR_INVALID_ASSOC_HELP_INST - The help instance handle specified  */
  305.    /* on the WinAssociateHelpInstance() call is not a valid               */
  306.    /* window handle.                                                      */
  307.    /***********************************************************************/
  308.    #define  HMERR_INVALID_ASSOC_HELP_INST              0x00001003L
  309.  
  310.    /***********************************************************************/
  311.    /* HMERR_INVALID_DESTROY_HELP_INST - The window handle specified       */
  312.    /* as the help instance to destroy is not of the help instance class.  */
  313.    /***********************************************************************/
  314.    #define  HMERR_INVALID_DESTROY_HELP_INST            0x00001004L
  315.  
  316.    /***********************************************************************/
  317.    /* HMERR_NO_HELP_INST_IN_CHAIN - The parent or owner chain of the      */
  318.    /* application window specified does not have a help instance          */
  319.    /* associated with it.                                                 */
  320.    /***********************************************************************/
  321.    #define  HMERR_NO_HELP_INST_IN_CHAIN                0x00001005L
  322.  
  323.    /***********************************************************************/
  324.    /* HMERR_INVALID_HELP_INSTANCE_HDL - The handle specified to be a      */
  325.    /* help instance does not have the class name of a IPF                 */
  326.    /* help instance.                                                      */
  327.    /***********************************************************************/
  328.    #define  HMERR_INVALID_HELP_INSTANCE_HDL            0x00001006L
  329.  
  330.    /***********************************************************************/
  331.    /* HMERR_INVALID_QUERY_APP_WND - The application window specified on   */
  332.    /* a WinQueryHelpInstance() call is not a valid window handle.         */
  333.    /***********************************************************************/
  334.    #define  HMERR_INVALID_QUERY_APP_WND                0x00001007L
  335.  
  336.    /***********************************************************************/
  337.    /* HMERR_HELP_INST_CALLED_INVALID -  The handle of the help instance   */
  338.    /* specified on an API call to the IPF does not have the               */
  339.    /* class name of an IPF help instance.                                 */
  340.    /***********************************************************************/
  341.    #define  HMERR_HELP_INST_CALLED_INVALID             0x00001008L
  342.  
  343.    #define  HMERR_HELPTABLE_UNDEFINE                   0x00001009L
  344.    #define  HMERR_HELP_INSTANCE_UNDEFINE               0x0000100aL
  345.    #define  HMERR_HELPITEM_NOT_FOUND                   0x0000100bL
  346.    #define  HMERR_INVALID_HELPSUBITEM_SIZE             0x0000100cL
  347.    #define  HMERR_HELPSUBITEM_NOT_FOUND                0x0000100dL
  348.  
  349.    /***********************************************************************/
  350.    /* HMERR_INDEX_NOT_FOUND - No index in library file.                   */
  351.    /***********************************************************************/
  352.    #define  HMERR_INDEX_NOT_FOUND                      0x00002001L
  353.  
  354.    /***********************************************************************/
  355.    /* HMERR_CONTENT_NOT_FOUND - Library file does not have any contents.  */
  356.    /***********************************************************************/
  357.    #define  HMERR_CONTENT_NOT_FOUND                    0x00002002L
  358.  
  359.    /***********************************************************************/
  360.    /* HMERR_OPEN_LIB_FILE     - Cannot open library file                  */
  361.    /***********************************************************************/
  362.    #define  HMERR_OPEN_LIB_FILE                        0x00002003L
  363.  
  364.    /***********************************************************************/
  365.    /* HMERR_READ_LIB_FILE     - Cannot read library file                  */
  366.    /***********************************************************************/
  367.    #define  HMERR_READ_LIB_FILE                        0x00002004L
  368.  
  369.    /***********************************************************************/
  370.    /* HMERR_CLOSE_LIB_FILE    - Cannot close library file                 */
  371.    /***********************************************************************/
  372.    #define  HMERR_CLOSE_LIB_FILE                       0x00002005L
  373.  
  374.    /***********************************************************************/
  375.    /* HMERR_INVALID_LIB_FILE  - Improper library file provided            */
  376.    /***********************************************************************/
  377.    #define  HMERR_INVALID_LIB_FILE                     0x00002006L
  378.  
  379.    /***********************************************************************/
  380.    /* HMERR_NO_MEMORY - Unable to allocate the requested amount of memory.*/
  381.    /***********************************************************************/
  382.    #define  HMERR_NO_MEMORY                            0x00002007L
  383.  
  384.    /***********************************************************************/
  385.    /* HMERR_ALLOCATE_SEGMENT - Unable                                     */
  386.    /* to allocate a segment of memory for memory allocation requested     */
  387.    /* from the IPF.                                                       */
  388.    /***********************************************************************/
  389.    #define  HMERR_ALLOCATE_SEGMENT                     0x00002008L
  390.  
  391.    /***********************************************************************/
  392.    /* HMERR_FREE_MEMORY - Unable to free allocated  memory                */
  393.    /***********************************************************************/
  394.    #define  HMERR_FREE_MEMORY                          0x00002009L
  395.  
  396.    /***********************************************************************/
  397.    /* HMERR_PANEL_NOT_FOUND  - Unable                                     */
  398.    /* to find a help panel requested to help manager                      */
  399.    /***********************************************************************/
  400.    #define  HMERR_PANEL_NOT_FOUND                      0x00002010L
  401.  
  402.    /***********************************************************************/
  403.    /* HMERR_DATABASE_NOT_OPEN - Unable to read the unopened database      */
  404.    /***********************************************************************/
  405.    #define  HMERR_DATABASE_NOT_OPEN                    0x00002011L
  406.  
  407.    /***********************************************************************/
  408.    /* HMERR_DDL_ERROR - Unable to load resource dll                       */
  409.    /***********************************************************************/
  410.    #define  HMERR_LOAD_DLL                              0x00002013L
  411.  
  412.    /***********************************************************************/
  413.    /* AC Viewport stucture definitions                                    */
  414.    /***********************************************************************/
  415.    typedef struct _ACVP {      /* acvp */
  416.       ULONG  cb;
  417.       HAB    hAB;
  418.       HMQ    hmq;
  419.       ULONG  ObjectID;            /* object identifier */
  420.       HWND   hWndParent;          /* IPF viewport client handle */
  421.       HWND   hWndOwner;           /* IPF viewport client handle */
  422.       HWND   hWndACVP;            /* applications frame window hwnd */
  423.    } ACVP, *PACVP;
  424.  
  425.    /***********************************************************************/
  426.    /* DDF defines and prototypes                                          */
  427.    /***********************************************************************/
  428.    #ifndef PMDDF_H
  429.       #define PMDDF_H
  430.    #endif /* PMDDF_H */
  431.  
  432.    #ifdef INCL_DDF
  433.       /*********************************************************************/
  434.       /* Define Handle to DDF                                              */
  435.       /*********************************************************************/
  436.       typedef VOID FAR *HDDF;
  437.  
  438.       /* DdfHyperText Flags */
  439.       #define REFERENCE_BY_ID     0L
  440.       #define REFERENCE_BY_RES    1L
  441.  
  442.       /* DdfBeginList formatting flags */
  443.       #define HMBT_NONE           1L
  444.       #define HMBT_ALL            2L
  445.       #define HMBT_FIT            3L
  446.  
  447.       #define HMLS_SINGLELINE     1L
  448.       #define HMLS_DOUBLELINE     2L
  449.  
  450.       /* DdfBitmap alignment flags */
  451.       #define ART_RUNIN           0x10L
  452.       #define ART_LEFT            0x01L
  453.       #define ART_RIGHT           0x02L
  454.       #define ART_CENTER          0x04L
  455.  
  456.       /* DdfSetColor Color Flag */
  457.       #define CLR_UNCHANGED      (-6L)
  458.  
  459.       /**********************************************************************/
  460.       /* DDF API declarations.                                              */
  461.       /**********************************************************************/
  462.  
  463.       HDDF APIENTRY  DdfInitialize (HWND hwndHelpInstance,
  464.                                       ULONG cbBuffer,
  465.                                       ULONG ulIncrement);
  466.  
  467.       BOOL APIENTRY  DdfPara (HDDF hddf);
  468.  
  469.       BOOL APIENTRY  DdfSetFormat (HDDF hddf,
  470.                                    ULONG fFormatType);
  471.  
  472.       BOOL APIENTRY  DdfSetTextAlign (HDDF hddf,
  473.                                       ULONG fAlign);
  474.  
  475.       BOOL APIENTRY  DdfSetColor (HDDF hddf,
  476.                                   COLOR fBackColor,
  477.                                   COLOR fForColor);
  478.  
  479.       BOOL APIENTRY  DdfInform (HDDF hddf,
  480.                                 PSZ pszText,
  481.                                 ULONG resInformNumber);
  482.  
  483.       BOOL APIENTRY  DdfSetFontStyle (HDDF hddf,
  484.                                       ULONG fFontStyle);
  485.  
  486.       BOOL APIENTRY  DdfHyperText (HDDF hddf,
  487.                                    PSZ pszText,
  488.                                    PSZ pszReference,
  489.                                    ULONG fReferenceType);
  490.  
  491.       BOOL APIENTRY  DdfBeginList (HDDF hddf,
  492.                                    ULONG ulWidthDT,
  493.                                    ULONG fBreakType,
  494.                                    ULONG fSpacing);
  495.  
  496.       BOOL APIENTRY  DdfListItem (HDDF hddf,
  497.                                   PSZ pszTerm,
  498.                                   PSZ pszDescription);
  499.  
  500.       BOOL APIENTRY  DdfEndList (HDDF hddf);
  501.  
  502.       BOOL APIENTRY  DdfMetafile (HDDF hddf,
  503.                                   HMF hmf,
  504.                                   PRECTL prclRect);
  505.  
  506.       BOOL APIENTRY  DdfText (HDDF hddf,
  507.                               PSZ pszText);
  508.  
  509.       BOOL APIENTRY  DdfSetFont (HDDF hddf,
  510.                                  PSZ pszFaceName,
  511.                                  ULONG ulWidth,
  512.                                  ULONG ulHeight);
  513.  
  514.       BOOL APIENTRY  DdfBitmap (HDDF hddf,
  515.                                 HBITMAP hbm,
  516.                                 ULONG fAlign);
  517.  
  518.       /*********************************************************************/
  519.       /* error codes returned by DDF API functions                         */
  520.       /*********************************************************************/
  521.       #define HMERR_DDF_MEMORY                  0x3001
  522.       #define HMERR_DDF_ALIGN_TYPE              0x3002
  523.       #define HMERR_DDF_BACKCOLOR               0x3003
  524.       #define HMERR_DDF_FORECOLOR               0x3004
  525.       #define HMERR_DDF_FONTSTYLE               0x3005
  526.       #define HMERR_DDF_REFTYPE                 0x3006
  527.       #define HMERR_DDF_LIST_UNCLOSED           0x3007
  528.       #define HMERR_DDF_LIST_UNINITIALIZED      0x3008
  529.       #define HMERR_DDF_LIST_BREAKTYPE          0x3009
  530.       #define HMERR_DDF_LIST_SPACING            0x300A
  531.       #define HMERR_DDF_HINSTANCE               0x300B
  532.       #define HMERR_DDF_EXCEED_MAX_LENGTH       0x300C
  533.       #define HMERR_DDF_EXCEED_MAX_INC          0x300D
  534.       #define HMERR_DDF_INVALID_DDF             0x300E
  535.       #define HMERR_DDF_FORMAT_TYPE             0x300F
  536.       #define HMERR_DDF_INVALID_PARM            0x3010
  537.       #define HMERR_DDF_INVALID_FONT            0x3011
  538.       #define HMERR_DDF_SEVERE                  0x3012
  539.  
  540.    #endif /* INCL_DDF */
  541.    /* XLATOFF */
  542.  
  543.  
  544. #endif /* PMHELP_INCLUDED */
  545. /* XLATON */
  546.  
  547. /* XLATOFF */
  548. #ifdef __IBMC__
  549.    #pragma checkout( suspend )
  550.       #ifndef __CHKHDR__
  551.          #pragma checkout( resume )
  552.       #endif
  553.    #pragma checkout( resume )
  554. #endif
  555. /* XLATON */
  556.  
  557. /**************************** end of file **********************************/
  558.