home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / IBMH / PMTKTP.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  7KB  |  194 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: PMTKTP.H
  15. *
  16. * Private OS/2 Presentation Manager Help Toolkit include file
  17. *
  18. *
  19. *
  20. * ===========================================================================
  21. *
  22. * Comments at the end of each typedef line give the name tags used in
  23. * the assembler include version of this file.
  24. *
  25. * The assembler include version of this file excludes lines between NOINC
  26. * and INC comments.
  27. *
  28. * ===========================================================================
  29. *
  30. */
  31.  
  32. /* NOINC */
  33. #ifdef __IBMC__
  34.    #pragma checkout( suspend )
  35.    #ifndef __CHKHDR__
  36.       #pragma checkout( suspend )
  37.    #endif
  38.    #pragma checkout( resume )
  39. #endif
  40. /* INC */
  41.  
  42. #define PMTKTP_INCLUDED
  43.  
  44.  
  45. #ifdef INCL_HELP
  46.    /* values for help resources and predefined resource ids */
  47.    #define RT_TEXT   256        /* text resource type */
  48.    
  49.    #define THI_UNDEFINED -1        /* unknown index (do not use !!!) */
  50.    #define THI_INDEX      1        /* index panel */
  51.    #define THI_KEYS       2        /* keys panel */
  52.    #define THI_ABOUT      3        /* first panel number available for user */
  53.    
  54.    #ifndef RC_INVOKED
  55.       
  56.       /* Help handle */
  57.       typedef ULONG HHELP;
  58.       
  59.       /* Help Initialization structure */
  60.       typedef struct _HIS     /* his */
  61.       {
  62.          USHORT cxWidth;
  63.          USHORT cyHeight;
  64.       } HIS;
  65.       typedef HIS *PHIS;
  66.       
  67.       
  68.    #endif /* RC_INVOKED */
  69.    
  70. #endif /* INCL_HELP */
  71.  
  72. #ifdef INCL_TKTP
  73.    /* Common strings (for use by WtiAlertBox() */
  74.    
  75.    #define IDS_MERGE1      0      /* merge string (%%) */
  76.    #define IDS_IFN         1      /* %% is not a valid filename. */
  77.    #define IDS_FNF         2      /* %% not found - Create new file? */
  78.    #define IDS_REF         3      /* Replace existing %%? */
  79.    #define IDS_SCC         4      /* %% has changed. Save current changes? */
  80.    #define IDS_EOF         5      /* Error opening %% */
  81.    #define IDS_ECF         6      /* Error creating %% */
  82.    
  83.    /* Common msg     box Help Ids */
  84.    #define IDMB_IFN        -1
  85.    #define IDMB_FNF        -2
  86.    #define IDMB_REF        -3
  87.    #define IDMB_SCC        -4
  88.    #define IDMB_EOF        -5
  89.    #define IDMB_ECF        -6
  90.    
  91.    /* Dialog box IDs Open/Save IDs */
  92.    #define IDD_FILEOPEN    -1
  93.    #define IDD_FILESAVE    -2
  94.    #define IDD_PMTKT_OPEN          255
  95.    #define IDD_PMTKT_SAVEAS        254
  96.    #define IDD_PMTKT_LOGO          253
  97.    
  98.    #define ATTRDIRLIST     0x4010 /* include directories and drives in listbox */
  99.    
  100.    #define APPNAMEMAX        40   /* for help use, truncated if larger */
  101.    #define MAX_FNAME_LEN     260
  102.    #define CBEXTMAX           6
  103.    #define CBROOTNAMEMAX    (MAX_FNAME_LEN - CBEXTMAX - 1)
  104.    #define MAXMESSAGELENGTH (MAX_FNAME_LEN + 120) /* maximum cb of a msg
  105.    (instruction or warning). */
  106.    
  107.    /* Action value for WtiDlgFile, the values may be ORed, except DLG_OPENDLG */
  108.    /* and DLG_SAVEDLG. */
  109.    #define DLG_OPENDLG 0x00        /* Use the Open dialog box. */
  110.    #define DLG_SAVEDLG 0x01        /* Use the Save (As) dialog box */
  111.    #define DLG_NOOPEN  0x02        /* Don't Open the file we selected */
  112.    #define DLG_HELP    0x04        /* The dialog box supports Help */
  113.    
  114.    /* Return values from WtiDlgFile : */
  115.    #define TDF_ERRMEM   0
  116.    #define TDF_INVALID  1
  117.    #define TDF_NOOPEN   2
  118.    #define TDF_NEWOPEN  3
  119.    #define TDF_OLDOPEN  4
  120.    #define TDF_NOSAVE   5
  121.    #define TDF_NEWSAVE  6
  122.    #define TDF_OLDSAVE  7
  123.    
  124.    
  125.    /* Some ROP GPICALLS.H doesn't define */
  126.    #define ROP_Pn           (LONG)0x0000000f
  127.    #define ROP_DSan         (LONG)0x00000077
  128.    
  129.    /* Flags for WtiOpenFile */
  130.    #define OF_REOPEN 0x8000
  131.    #define OF_EXIST  0x4000
  132.    #define OF_PROMPT 0x2000
  133.    #define OF_CREATE 0x1000
  134.    #define OF_CANCEL 0x0800
  135.    #define OF_VERIFY 0x0400
  136.    #define OF_DELETE 0x0200
  137.    #define OF_PARSE  0x0100
  138.    
  139.    #define OF_READ      0x0080
  140.    #define OF_WRITE     0x0040
  141.    #define OF_READWRITE 0x0020
  142.    
  143.    /* flAttributes used to filter entries provided by DlgFillListBox */
  144.    #define BITATTRDRIVE 0x4000
  145.    #define BITATTRDIR   0x0010
  146.    
  147.    #ifndef RC_INVOKED
  148.       
  149.       /* Useful abreviations */
  150.       typedef char *PSTR;
  151.       typedef SHANDLE *PHANDLE;
  152.       
  153.       /* Data structure used to pass information to WtiDlgFile(). */
  154.       typedef struct _DLF     /* dlf */
  155.       {
  156.          USHORT   rgbAction;             /* action usType:  eg. DLG_OPEN     */
  157.          USHORT   rgbFlags;              /* open file flAttributes         */
  158.          PHANDLE  phFile;                /* file handle                    */
  159.          PSZ      pszExt;                /* default file extension "\.ext" */
  160.          PSZ      pszAppName;            /* application name               */
  161.          PSZ      pszTitle;              /* panel title or NULL            */
  162.          PSZ      pszInstructions;       /* panel instructions or NULL     */
  163.          CHAR szFileName[MAX_FNAME_LEN]; /* relative file name             */
  164.          CHAR szOpenFile[MAX_FNAME_LEN]; /* full path name of current file */
  165.       } DLF;
  166.       typedef DLF *NPDLF;
  167.       typedef DLF *PDLF;
  168.       
  169.       /*  Brush structure */
  170.       typedef struct _BRUSH   /* tkbr */
  171.       {
  172.          LONG   lColor;
  173.          USHORT usSymbol;
  174.          ULONG  rop;
  175.       } BRUSH;
  176.       typedef BRUSH *NPBRUSH;
  177.       typedef BRUSH *PBRUSH;
  178.       
  179.    #endif
  180.    
  181. #endif /* INCL_TKTP */
  182.  
  183. /* NOINC */
  184. #ifdef __IBMC__
  185.    #pragma checkout( suspend )
  186.    #ifndef __CHKHDR__
  187.       #pragma checkout( resume )
  188.    #endif
  189.    #pragma checkout( resume )
  190. #endif
  191. /* INC */
  192.  
  193. /**************************** end of file **********************************/
  194.