home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v2.zip / DDKX86 / DBCSDD / H / PMSTDDLG.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  102KB  |  1,884 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: PMSTDDLG.H
  15. *
  16. * OS/2 Presentation Manager CUA controls and dialogs declarations
  17. *
  18. *
  19. * ===========================================================================
  20. *
  21. * The folowing symbols are used in this file for conditional sections.
  22. *
  23. *   #define:                To include:
  24. *
  25. *   INCL_WINSTDDLGS         include all dialogs/controls
  26. *   INCL_WINSTDBOOK         book control class
  27. *   INCL_WINSTDCNR          container control class
  28. *   INCL_WINSTDDRAG         standard drag dll
  29. *   INCL_WINSTDFILE         standard file dialog
  30. *   INCL_WINSTDFONT         standard font dialog
  31. *   INCL_WINSTDSLIDER       slider control class
  32. *   INCL_WINSTDSPIN         spin button control class
  33. *   INCL_WINSTDVALSET       value set control class
  34. *
  35. * ===========================================================================
  36. *
  37. * Comments at the end of each typedef line give the name tags used in
  38. * the assembler include version of this file.
  39. *
  40. * The assembler include version of this file excludes lines between NOINC
  41. * and INC comments.
  42. *
  43. #ifndef __IBMC__
  44.    * The public version of this file (as shipped with the OS/2 Toolkit
  45.    * product) excludes all non 32-bit material marked in this file
  46.    * as well as any areas specifically marked with __IBMC__ conditional
  47.    * sections - including this paragraph. The H2IBMH rexx command file
  48.    * removes these sections.
  49. #endif
  50. \***************************************************************************/
  51.  
  52. #ifdef __IBMC__
  53.    #pragma checkout( suspend )
  54.       #ifndef __CHKHDR__
  55.          #pragma checkout( suspend )
  56.       #endif
  57.    #pragma checkout( resume )
  58. #endif
  59.  
  60. #define STDDLG_INCLUDED
  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. #ifdef INCL_WINSTDDLGS /* enable everything */
  73.    #define INCL_WINSTDFILE
  74.    #define INCL_WINSTDFONT
  75.    #define INCL_WINSTDSPIN
  76.    #define INCL_WINSTDDRAG
  77.    #define INCL_WINSTDCNR
  78.    #define INCL_WINSTDSLIDER
  79.    #define INCL_WINSTDVALSET
  80.    #define INCL_WINSTDBOOK
  81. #endif /* INCL_WINSTDDLGS */
  82.  
  83. #if (defined (INCL_WINSTDCNR) || defined (INCL_WINSTDVALSET))
  84.    #define INCL_WINSTDDRAG
  85. #endif /* INCL_WINSTDCNR || INCL_WINSTDVALSET */
  86.  
  87. #if !(defined (INCL_WINSTDFILE_INCLUDED) || !defined (INCL_WINSTDFILE))
  88.    #define INCL_WINSTDFILE_INCLUDED
  89.    /**********************************************************************/
  90.    /*                                                                    */
  91.    /*                     F I L E    D I A L O G                         */
  92.    /*                                                                    */
  93.    /**********************************************************************/
  94.  
  95.    /*--------------------------------------------------------------------*/
  96.    /* File Dialog Invocation Flag Definitions.                           */
  97.    /*--------------------------------------------------------------------*/
  98.    #define FDS_CENTER           0x00000001L /* Center within owner wnd   */
  99.    #define FDS_CUSTOM           0x00000002L /* Use custom user template  */
  100.    #define FDS_FILTERUNION      0x00000004L /* Use union of filters      */
  101.    #define FDS_HELPBUTTON       0x00000008L /* Display Help button       */
  102.    #define FDS_APPLYBUTTON      0x00000010L /* Display Apply button      */
  103.    #define FDS_PRELOAD_VOLINFO  0x00000020L /* Preload volume info       */
  104.    #define FDS_MODELESS         0x00000040L /* Make dialog modeless      */
  105.    #define FDS_INCLUDE_EAS      0x00000080L /* Always load EA info       */
  106.    #define FDS_OPEN_DIALOG      0x00000100L /* Select Open dialog        */
  107.    #define FDS_SAVEAS_DIALOG    0x00000200L /* Select SaveAs dialog      */
  108.    #define FDS_MULTIPLESEL      0x00000400L /* Enable multiple selection */
  109.    #define FDS_ENABLEFILELB     0x00000800L /* Enable SaveAs Listbox     */
  110.  
  111.    /*--------------------------------------------------------------------*/
  112.    /* File Dialog Selection returned attribute                           */
  113.    /*--------------------------------------------------------------------*/
  114.    #define  FDS_EFSELECTION    0
  115.    #define  FDS_LBSELECTION    1
  116.  
  117.    /*--------------------------------------------------------------------*/
  118.    /* Error Return Codes from dialog (self defining)                     */
  119.    /*--------------------------------------------------------------------*/
  120.    #define  FDS_SUCCESSFUL                            0
  121.    #define  FDS_ERR_DEALLOCATE_MEMORY                 1
  122.    #define  FDS_ERR_FILTER_TRUNC                      2
  123.    #define  FDS_ERR_INVALID_DIALOG                    3
  124.    #define  FDS_ERR_INVALID_DRIVE                     4
  125.    #define  FDS_ERR_INVALID_FILTER                    5
  126.    #define  FDS_ERR_INVALID_PATHFILE                  6
  127.    #define  FDS_ERR_OUT_OF_MEMORY                     7
  128.    #define  FDS_ERR_PATH_TOO_LONG                     8
  129.    #define  FDS_ERR_TOO_MANY_FILE_TYPES               9
  130.    #define  FDS_ERR_INVALID_VERSION                   10
  131.    #define  FDS_ERR_INVALID_CUSTOM_HANDLE             11
  132.    #define  FDS_ERR_DIALOG_LOAD_ERROR                 12
  133.    #define  FDS_ERR_DRIVE_ERROR                       13
  134.  
  135.    /*--------------------------------------------------------------------*/
  136.    /* File Dialog Messages.                                              */
  137.    /*--------------------------------------------------------------------*/
  138.    #define FDM_FILTER       WM_USER+40  /* mp1 = PSZ pszFileName         */
  139.    /*                                      mp2 = PSZ EA .TYPE value      */
  140.    /*                                      mr  = TRUE -> keep file.      */
  141.    #define FDM_VALIDATE     WM_USER+41  /* mp1 = PSZ pszPathName         */
  142.    /*                                      mp2 = USHORT Field name id    */
  143.    /*                                      mr  = TRUE -> Valid name      */
  144.    #define FDM_ERROR        WM_USER+42  /* mp1 = USHORT Error message id */
  145.    /*                                      mp2 = NULL   reserved         */
  146.    /*                                      mr  = NULL -> Use default msg */
  147.  
  148.    /*--------------------------------------------------------------------*/
  149.    /* Define the type that is a pointer to an array of pointers.         */
  150.    /*     Hence: pointer to an array of Z string pointers.               */
  151.    /*--------------------------------------------------------------------*/
  152.    typedef  PSZ       APSZ[1];
  153.    typedef  APSZ FAR *PAPSZ;          /* papsz */
  154.  
  155.    /*--------------------------------------------------------------------*/
  156.    /* File Dialog application data structure.                            */
  157.    /*--------------------------------------------------------------------*/
  158.    typedef struct _FILEDLG {   /* fildlg */
  159.       ULONG    cbSize;            /* Size of FILEDLG structure.         */
  160.       ULONG    fl;                /* FDS_ flags. Alter behavior of dlg. */
  161.       ULONG    ulUser;            /* User defined field.                */
  162.       LONG     lReturn;           /* Result code from dialog dismissal. */
  163.       LONG     lSRC;              /* System return code.                */
  164.       PSZ      pszTitle;          /* String to display in title bar.    */
  165.       PSZ      pszOKButton;       /* String to display in OK button.    */
  166.       PFNWP    pfnDlgProc;        /* Entry point to custom dialog proc. */
  167.       PSZ      pszIType;          /* Pointer to string containing       */
  168.       /*                               initial EA type filter. Type     */
  169.       /*                               does not have to exist in list.  */
  170.       PAPSZ    papszITypeList;    /* Pointer to table of pointers that  */
  171.       /*                                point to null terminated Type   */
  172.       /*                                strings. End of table is marked */
  173.       /*                                by a NULL pointer.              */
  174.       PSZ      pszIDrive;         /* Pointer to string containing       */
  175.       /*                               initial drive. Drive does not    */
  176.       /*                               have to exist in drive list.     */
  177.       PAPSZ    papszIDriveList;   /* Pointer to table of pointers that  */
  178.       /*                                point to null terminated Drive  */
  179.       /*                                strings. End of table is marked */
  180.       /*                                by a NULL pointer.              */
  181.       HMODULE  hMod;              /* Custom File Dialog template.       */
  182.       CHAR     szFullFile[CCHMAXPATH]; /* Initial or selected fully     */
  183.       /*                                  qualified path and file.      */
  184.       PAPSZ    papszFQFilename;   /* Pointer to table of pointers that  */
  185.       /*                                point to null terminated FQFname*/
  186.       /*                                strings. End of table is marked */
  187.       /*                                by a NULL pointer.              */
  188.       ULONG    ulFQFCount;        /* Number of files selected           */
  189.       USHORT   usDlgId;           /* Custom dialog id.                  */
  190.       SHORT    x;                 /* X coordinate of the dialog         */
  191.       SHORT    y;                 /* Y coordinate of the dialog         */
  192.       SHORT    sEAType;           /* Selected file's EA Type.           */
  193.    } FILEDLG;
  194.    typedef FILEDLG FAR *PFILEDLG;
  195.  
  196.    /*--------------------------------------------------------------------*/
  197.    /* File Dialog - Function Prototype                                   */
  198.    /*--------------------------------------------------------------------*/
  199.  
  200.    #ifdef INCL_32
  201.       HWND    APIENTRY WinFileDlg(HWND hwndP,
  202.                                   HWND hwndO,
  203.                                   PFILEDLG pfild);
  204.  
  205.       MRESULT APIENTRY WinDefFileDlgProc(HWND hwnd,
  206.                                          ULONG msg,
  207.                                          MPARAM mp1,
  208.                                          MPARAM mp2);
  209.    
  210.        BOOL    APIENTRY WinFreeFileDlgList(PAPSZ papszFQFilename);
  211.    #endif
  212.  
  213.    /*--------------------------------------------------------------------*/
  214.    /* File Dialog - dialog and control ids                               */
  215.    /*--------------------------------------------------------------------*/
  216.    #define   DID_FILE_DIALOG             256
  217.    #define   DID_FILENAME_TXT            257
  218.    #define   DID_FILENAME_ED             258
  219.    #define   DID_DRIVE_TXT               259
  220.    #define   DID_DRIVE_CB                260
  221.    #define   DID_FILTER_TXT              261
  222.    #define   DID_FILTER_CB               262
  223.    #define   DID_DIRECTORY_TXT           263
  224.    #define   DID_DIRECTORY_LB            264
  225.    #define   DID_FILES_TXT               265
  226.    #define   DID_FILES_LB                266
  227.    #define   DID_HELP_PB                 267
  228.    #define   DID_APPLY_PB                268
  229.    #define   DID_OK_PB                   DID_OK
  230.    #define   DID_CANCEL_PB               DID_CANCEL
  231.  
  232.    #define   IDS_FILE_ALL_FILES_SELECTOR      1000
  233.    #define   IDS_FILE_BACK_CUR_PATH           1001
  234.    #define   IDS_FILE_BACK_PREV_PATH          1002
  235.    #define   IDS_FILE_BACK_SLASH              1003
  236.    #define   IDS_FILE_BASE_FILTER             1004
  237.    #define   IDS_FILE_BLANK                   1005
  238.    #define   IDS_FILE_COLON                   1006
  239.    #define   IDS_FILE_DOT                     1007
  240.    #define   IDS_FILE_DRIVE_LETTERS           1008
  241.    #define   IDS_FILE_FWD_CUR_PATH            1009
  242.    #define   IDS_FILE_FWD_PREV_PATH           1010
  243.    #define   IDS_FILE_FORWARD_SLASH           1011
  244.    #define   IDS_FILE_PARENT_DIR              1012
  245.    #define   IDS_FILE_Q_MARK                  1013
  246.    #define   IDS_FILE_SPLAT                   1014
  247.    #define   IDS_FILE_SPLAT_DOT               1015
  248.    #define   IDS_FILE_SAVEAS_TITLE            1016
  249.    #define   IDS_FILE_SAVEAS_FILTER_TXT       1017
  250.    #define   IDS_FILE_SAVEAS_FILENM_TXT       1018
  251.    #define   IDS_FILE_DUMMY_FILE_NAME         1019
  252.    #define   IDS_FILE_DUMMY_FILE_EXT          1020
  253.    #define   IDS_FILE_DUMMY_DRIVE             1021
  254.    #define   IDS_FILE_DUMMY_ROOT_DIR          1022
  255.    #define   IDS_FILE_PATH_PTR                1023
  256.    #define   IDS_FILE_VOLUME_PREFIX           1024
  257.    #define   IDS_FILE_VOLUME_SUFFIX           1025
  258.    #define   IDS_FILE_PATH_PTR2               1026
  259.    #define   IDS_FILE_INVALID_CHARS           1027
  260.  
  261.    #define   IDS_FILE_BAD_DRIVE_NAME          1100
  262.    #define   IDS_FILE_BAD_DRIVE_OR_PATH_NAME  1101
  263.    #define   IDS_FILE_BAD_FILE_NAME           1102
  264.    #define   IDS_FILE_BAD_FQF                 1103
  265.    #define   IDS_FILE_BAD_NETWORK_NAME        1104
  266.    #define   IDS_FILE_BAD_SUB_DIR_NAME        1105
  267.    #define   IDS_FILE_DRIVE_NOT_AVAILABLE     1106
  268.    #define   IDS_FILE_FQFNAME_TOO_LONG        1107
  269.    #define   IDS_FILE_OPEN_DIALOG_NOTE        1108
  270.    #define   IDS_FILE_PATH_TOO_LONG           1109
  271.    #define   IDS_FILE_SAVEAS_DIALOG_NOTE      1110
  272.  
  273.    #define   IDS_FILE_DRIVE_DISK_CHANGE       1120
  274.    #define   IDS_FILE_DRIVE_NOT_READY         1122
  275.    #define   IDS_FILE_DRIVE_LOCKED            1123
  276.    #define   IDS_FILE_DRIVE_NO_SECTOR         1124
  277.    #define   IDS_FILE_DRIVE_SOME_ERROR        1125
  278.    #define   IDS_FILE_DRIVE_INVALID           1126
  279.    #define   IDS_FILE_INSERT_DISK_NOTE        1127
  280.    #define   IDS_FILE_OK_WHEN_READY           1128
  281.  
  282. #endif  /* !INCL_WINSTDFILE_INCLUDED && INCL_WINSTDFILE */
  283.  
  284.  
  285. #if !(defined (INCL_WINSTDFONT_INCLUDED) || !defined (INCL_WINSTDFONT))
  286.    #define INCL_WINSTDFONT_INCLUDED
  287.    /**********************************************************************/
  288.    /*                                                                    */
  289.    /*                     F O N T    D I A L O G                         */
  290.    /*                                                                    */
  291.    /**********************************************************************/
  292.  
  293.    /**********************************************************************/
  294.    /* Font Dialog Creation Structure                                     */
  295.    /**********************************************************************/
  296.  
  297.    typedef struct _FONTDLG {   /* fntdlg */
  298.       ULONG   cbSize;                /* sizeof(FONTDLG)                 */
  299.       HPS     hpsScreen;             /* Screen presentation space       */
  300.       HPS     hpsPrinter;            /* Printer presentation space      */
  301.       PSZ     pszTitle;              /* Application supplied title      */
  302.       PSZ     pszPreview;            /* String to print in preview wndw */
  303.       PSZ     pszPtSizeList;         /* Application provided size list  */
  304.       PFNWP   pfnDlgProc;            /* Dialog subclass procedure       */
  305.       PSZ     pszFamilyname;         /* Family name of font             */
  306.       FIXED   fxPointSize;           /* Point size the user selected    */
  307.       ULONG   fl;                    /* FNTS_* flags - dialog styles    */
  308.       ULONG   flFlags;               /* FNTF_* state flags              */
  309.       ULONG   flType;                /* Font type option bits           */
  310.       ULONG   flTypeMask;            /* Mask of which font types to use */
  311.       ULONG   flStyle;               /* The selected style bits         */
  312.       ULONG   flStyleMask;           /* Mask of which style bits to use */
  313.       LONG    clrFore;               /* Selected foreground color       */
  314.       LONG    clrBack;               /* Selected background color       */
  315.       ULONG   ulUser;                /* Blank field for application     */
  316.       LONG    lReturn;               /* Return Value of the Dialog      */
  317.       LONG    lSRC;                  /* System return code.             */
  318.       LONG    lEmHeight;             /* Em height of the current font   */
  319.       LONG    lXHeight;              /* X height of the current font    */
  320.       LONG    lExternalLeading;      /* External Leading of font        */
  321.       HMODULE hMod;                  /* Module to load custom template  */
  322.       FATTRS  fAttrs;                /* Font attribute structure        */
  323.       SHORT   sNominalPointSize;     /* Nominal Point Size of font      */
  324.       USHORT  usWeight;              /* The boldness of the font        */
  325.       USHORT  usWidth;               /* The width of the font           */
  326.       SHORT   x;                     /* X coordinate of the dialog      */
  327.       SHORT   y;                     /* Y coordinate of the dialog      */
  328.       USHORT  usDlgId;               /* ID of a custom dialog template  */
  329.       USHORT  usFamilyBufLen;        /* Length of family buffer provided*/
  330.       USHORT  usReserved;            /* reserved                        */
  331.    } FONTDLG;
  332.    typedef FONTDLG FAR *PFONTDLG;
  333.  
  334.    /**********************************************************************/
  335.    /* Font Dialog Style Flags                                            */
  336.    /**********************************************************************/
  337.    #define FNTS_CENTER              0x00000001L /* Center in owner dialog*/
  338.    #define FNTS_CUSTOM              0x00000002L /* Use custom template   */
  339.    #define FNTS_OWNERDRAWPREVIEW    0x00000004L /* Allow app to draw     */
  340.    #define FNTS_HELPBUTTON          0x00000008L /* Display Help button   */
  341.    #define FNTS_APPLYBUTTON         0x00000010L /* Display Apply button  */
  342.    #define FNTS_RESETBUTTON         0x00000020L /* Display Reset button  */
  343.    #define FNTS_MODELESS            0x00000040L /* Make dialog modeless  */
  344.    #define FNTS_INITFROMFATTRS      0x00000080L /* Initialize from FATTRs*/
  345.    #define FNTS_BITMAPONLY          0x00000100L /* Only allow bitmap font*/
  346.    #define FNTS_VECTORONLY          0x00000200L /* Only allow vector font*/
  347.    #define FNTS_FIXEDWIDTHONLY      0x00000400L /* Only allow monospaced */
  348.    #define FNTS_PROPORTIONALONLY    0x00000800L /* Only proportional font*/
  349.    #define FNTS_NOSYNTHESIZEDFONTS  0x00001000L /* Don't synthesize fonts*/
  350.  
  351.    /**********************************************************************/
  352.    /* Font Dialog Flags                                                  */
  353.    /**********************************************************************/
  354.    #define FNTF_NOVIEWSCREENFONTS      1L
  355.    #define FNTF_NOVIEWPRINTERFONTS     2L
  356.    #define FNTF_SCREENFONTSELECTED     4L
  357.    #define FNTF_PRINTERFONTSELECTED    8L
  358.  
  359.    /**********************************************************************/
  360.    /* Color code definitions                                             */
  361.    /**********************************************************************/
  362.    #define CLRC_FOREGROUND             1L
  363.    #define CLRC_BACKGROUND             2L
  364.  
  365.    /**********************************************************************/
  366.    /* Filter List message string identifiers                             */
  367.    /**********************************************************************/
  368.    #define FNTI_BITMAPFONT         0x0001
  369.    #define FNTI_VECTORFONT         0x0002
  370.    #define FNTI_FIXEDWIDTHFONT     0x0004
  371.    #define FNTI_PROPORTIONALFONT   0x0008
  372.    #define FNTI_SYNTHESIZED        0x0010
  373.    #define FNTI_DEFAULTLIST        0x0020
  374.    #define FNTI_FAMILYNAME         0x0100
  375.    #define FNTI_STYLENAME          0x0200
  376.    #define FNTI_POINTSIZE          0x0400
  377.  
  378.    /**********************************************************************/
  379.    /* Error Return Codes from dialog (self defining)                     */
  380.    /**********************************************************************/
  381.    #define  FNTS_SUCCESSFUL                           0
  382.    #define  FNTS_ERR_INVALID_DIALOG                   3
  383.    #define  FNTS_ERR_ALLOC_SHARED_MEM                 4
  384.    #define  FNTS_ERR_INVALID_PARM                     5
  385.    #define  FNTS_ERR_OUT_OF_MEMORY                    7
  386.    #define  FNTS_ERR_INVALID_VERSION                 10
  387.    #define  FNTS_ERR_DIALOG_LOAD_ERROR               12
  388.  
  389.    /**********************************************************************/
  390.    /* Font Dialog Messages                                               */
  391.    /**********************************************************************/
  392.    #define FNTM_FACENAMECHANGED   WM_USER+50  /* mp1 = PSZ pszFacename   */
  393.    #define FNTM_POINTSIZECHANGED  WM_USER+51  /* mp1 = PSZ pszPointSize, */
  394.    /*                                            mp2 = FIXED fxPointSize */
  395.    #define FNTM_STYLECHANGED      WM_USER+52  /* mp1 = PSTYLECHANGE pstyc*/
  396.    #define FNTM_COLORCHANGED      WM_USER+53  /* mp1 = LONG clr          */
  397.    /*                                            mp2 = USHORT codeClr    */
  398.    #define FNTM_UPDATEPREVIEW     WM_USER+54  /* mp1 = HWND hWndPreview  */
  399.    #define FNTM_FILTERLIST        WM_USER+55  /* mp1 = PSZ pszFacename   */
  400.    /*                                            mp2 = USHORT usStrStyle */
  401.    /*                                            mr=TRUE(Add),FALSE(Dont)*/
  402.  
  403.    /**********************************************************************/
  404.    /* Stylechange message parameter structure                            */
  405.    /**********************************************************************/
  406.    typedef struct _STYLECHANGE {   /* stylc */
  407.       USHORT      usWeight;
  408.       USHORT      usWeightOld;
  409.       USHORT      usWidth;
  410.       USHORT      usWidthOld;
  411.       ULONG       flType;
  412.       ULONG       flTypeOld;
  413.       ULONG       flTypeMask;
  414.       ULONG       flTypeMaskOld;
  415.       ULONG       flStyle;
  416.       ULONG       flStyleOld;
  417.       ULONG       flStyleMask;
  418.       ULONG       flStyleMaskOld;
  419.    } STYLECHANGE;
  420.    typedef STYLECHANGE FAR *PSTYLECHANGE;
  421.  
  422.    /**********************************************************************/
  423.    /* Font Dialog Function Prototypes                                    */
  424.    /**********************************************************************/
  425.   #ifdef INCL_32
  426.       HWND    APIENTRY WinFontDlg(HWND hwndP,
  427.                                  HWND hwndO,
  428.                                  PFONTDLG pfntd);
  429.  
  430.       MRESULT APIENTRY WinDefFontDlgProc(HWND hwnd,
  431.                                          ULONG msg,
  432.                                          MPARAM mp1,
  433.                                          MPARAM mp2);
  434.    #endif
  435.  
  436.    /**********************************************************************/
  437.    /* font dialog and control id's                                       */
  438.    /**********************************************************************/
  439.    #define DID_FONT_DIALOG          300
  440.    #define DID_NAME                 301
  441.    #define DID_STYLE                302
  442.    #define DID_DISPLAY_FILTER       303
  443.    #define DID_PRINTER_FILTER       304
  444.    #define DID_SIZE                 305
  445.    #define DID_SAMPLE               306
  446.    #define DID_OUTLINE              307
  447.    #define DID_UNDERSCORE           308
  448.    #define DID_STRIKEOUT            309
  449.    #define DID_HELP_BUTTON          310
  450.    #define DID_APPLY_BUTTON         311
  451.    #define DID_RESET_BUTTON         312
  452.    #define DID_OK_BUTTON            DID_OK
  453.    #define DID_CANCEL_BUTTON        DID_CANCEL
  454.    #define DID_NAME_PREFIX          313
  455.    #define DID_STYLE_PREFIX         314
  456.    #define DID_SIZE_PREFIX          315
  457.    #define DID_SAMPLE_GROUPBOX      316
  458.    #define DID_EMPHASIS_GROUPBOX    317
  459.    #define DID_FONT_ISO_SUPPORT     318
  460.    #define DID_FONT_ISO_UNTESTED    319
  461.  
  462.    /**********************************************************************/
  463.    /* Stringtable id's                                                   */
  464.    /**********************************************************************/
  465.    #define IDS_FONT_SAMPLE            350
  466.    #define IDS_FONT_BLANK             351
  467.    #define IDS_FONT_KEY_0             352
  468.    #define IDS_FONT_KEY_9             353
  469.    #define IDS_FONT_KEY_SEP           354
  470.    #define IDS_FONT_DISP_ONLY         355
  471.    #define IDS_FONT_PRINTER_ONLY      356
  472.    #define IDS_FONT_COMBINED          357
  473.    #define IDS_FONT_WEIGHT1           358
  474.    #define IDS_FONT_WEIGHT2           359
  475.    #define IDS_FONT_WEIGHT3           360
  476.    #define IDS_FONT_WEIGHT4           361
  477.    #define IDS_FONT_WEIGHT5           362
  478.    #define IDS_FONT_WEIGHT6           363
  479.    #define IDS_FONT_WEIGHT7           364
  480.    #define IDS_FONT_WEIGHT8           365
  481.    #define IDS_FONT_WEIGHT9           366
  482.    #define IDS_FONT_WIDTH1            367
  483.    #define IDS_FONT_WIDTH2            368
  484.    #define IDS_FONT_WIDTH3            369
  485.    #define IDS_FONT_WIDTH4            370
  486.    #define IDS_FONT_WIDTH5            371
  487.    #define IDS_FONT_WIDTH6            372
  488.    #define IDS_FONT_WIDTH7            373
  489.    #define IDS_FONT_WIDTH8            374
  490.    #define IDS_FONT_WIDTH9            375
  491.    #define IDS_FONT_OPTION0           376
  492.    #define IDS_FONT_OPTION1           377
  493.    #define IDS_FONT_OPTION2           378
  494.    #define IDS_FONT_OPTION3           379
  495.    #define IDS_FONT_POINT_SIZE_LIST   380
  496.  
  497. #endif  /* !INCL_WINSTDFONT_INCLUDED && INCL_WINSTDFONT */
  498.  
  499.  
  500. #if !(defined (INCL_WINSTDSPIN_INCLUDED) || !defined (INCL_WINSTDSPIN))
  501.    #define INCL_WINSTDSPIN_INCLUDED
  502.    /**********************************************************************/
  503.    /*                                                                    */
  504.    /*                          S P I N    B U T T O N                    */
  505.    /*                                                                    */
  506.    /**********************************************************************/
  507.  
  508.    /**********************************************************************/
  509.    /* SPINBUTTON Creation Flags                                          */
  510.    /**********************************************************************/
  511.  
  512.    /**********************************************************************/
  513.    /* Character Acceptance                                               */
  514.    /**********************************************************************/
  515.    #define SPBS_ALLCHARACTERS 0x00000000L /* Default: All chars accepted */
  516.    #define SPBS_NUMERICONLY   0x00000001L /* Only 0 - 9 accepted & VKeys */
  517.    #define SPBS_READONLY      0x00000002L /* No chars allowed in entryfld*/
  518.  
  519.    /**********************************************************************/
  520.    /* Type of Component                                                  */
  521.    /**********************************************************************/
  522.    #define SPBS_MASTER        0x00000010L
  523.    #define SPBS_SERVANT       0x00000000L /* Default: Servant            */
  524.  
  525.    /**********************************************************************/
  526.    /* Type of Justification                                              */
  527.    /**********************************************************************/
  528.    #define SPBS_JUSTDEFAULT  0x00000000L /* Default: Same as Left        */
  529.    #define SPBS_JUSTLEFT     0x00000008L
  530.    #define SPBS_JUSTRIGHT    0x00000004L
  531.    #define SPBS_JUSTCENTER   0x0000000CL
  532.  
  533.    /**********************************************************************/
  534.    /* Border or not                                                      */
  535.    /**********************************************************************/
  536.    #define SPBS_NOBORDER     0x00000020L /* Borderless SpinField         */
  537.    /*                                       Default is to have a border. */
  538.  
  539.    /**********************************************************************/
  540.    /* Fast spin or not                                                   */
  541.    /**********************************************************************/
  542.    #define SPBS_FASTSPIN     0x00000100L /* Allow fast spinning.  Fast   */
  543.    /*                                       spinning is performed by     */
  544.    /*                                       skipping over numbers        */
  545.  
  546.    /**********************************************************************/
  547.    /* Pad numbers on front with 0's                                      */
  548.    /**********************************************************************/
  549.    #define SPBS_PADWITHZEROS 0x00000080L /* Pad the number with zeroes   */
  550.  
  551.    /**********************************************************************/
  552.    /* SPINBUTTON Messages                                                */
  553.    /**********************************************************************/
  554.  
  555.    /**********************************************************************/
  556.    /* Notification from Spinbutton to the application is sent in a       */
  557.    /* WM_CONTROL message.                                                */
  558.    /**********************************************************************/
  559.    #define SPBN_UPARROW       0x20A      /* up arrow button was pressed  */
  560.    #define SPBN_DOWNARROW     0x20B      /* down arrow button was pressed*/
  561.    #define SPBN_ENDSPIN       0x20C      /* mouse button was released    */
  562.    #define SPBN_CHANGE        0x20D      /* spinfield text has changed   */
  563.    #define SPBN_SETFOCUS      0x20E      /* spinfield received focus     */
  564.    #define SPBN_KILLFOCUS     0x20F      /* spinfield lost focus         */
  565.  
  566.    /**********************************************************************/
  567.    /* Messages from application to Spinbutton                            */
  568.    /**********************************************************************/
  569.    #define SPBM_OVERRIDESETLIMITS 0x200  /* Set spinbutton limits without*/
  570.    /*                                        resetting the current value */
  571.    #define SPBM_QUERYLIMITS       0x201  /* Query limits set by          */
  572.    /*                                        SPBM_SETLIMITS              */
  573.    #define SPBM_SETTEXTLIMIT      0x202  /* Max entryfield characters    */
  574.    #define SPBM_SPINUP            0x203  /* Tell entry field to spin up  */
  575.    #define SPBM_SPINDOWN          0x204  /* Tell entry field to spin down*/
  576.    #define SPBM_QUERYVALUE        0x205  /* Tell entry field to send     */
  577.    /*                                        current value               */
  578.  
  579.    /**********************************************************************/
  580.    /* Query Flags                                                        */
  581.    /**********************************************************************/
  582.    #define SPBQ_UPDATEIFVALID    0       /* Default                      */
  583.    #define SPBQ_ALWAYSUPDATE     1
  584.    #define SPBQ_DONOTUPDATE      3
  585.  
  586.    /**********************************************************************/
  587.    /* Return value for Empty Field.                                      */
  588.    /*    If ptr too long, variable sent in query msg                     */
  589.    /**********************************************************************/
  590.    #define SPBM_SETARRAY          0x206  /* Change the data to spin      */
  591.    #define SPBM_SETLIMITS         0x207  /* Change the numeric Limits    */
  592.    #define SPBM_SETCURRENTVALUE   0x208  /* Change the current value     */
  593.    #define SPBM_SETMASTER         0x209  /* Tell entryfield who master is*/
  594.  
  595. #endif  /* !INCL_WINSTDSPIN_INCLUDED && INCL_WINSTDSPIN */
  596.  
  597.  
  598. #if !(defined (INCL_WINSTDDRAG_INCLUDED) || !defined (INCL_WINSTDDRAG))
  599.    #define INCL_WINSTDDRAG_INCLUDED
  600.    /**********************************************************************/
  601.    /*                                                                    */
  602.    /*                D I R E C T   M A N I P U L A T I O N               */
  603.    /*                                                                    */
  604.    /**********************************************************************/
  605.  
  606.    #define PMERR_NOT_DRAGGING     0x1f00
  607.    #define PMERR_ALREADY_DRAGGING 0x1f01
  608.  
  609.    #define MSGF_DRAG              0x0010    /* message filter identifier */
  610.  
  611.    #define WM_DRAGFIRST           0x0310
  612.    #define WM_DRAGLAST            0x032f
  613.  
  614.    #define DM_DROP                0x032f
  615.    #define DM_DRAGOVER            0x032e
  616.    #define DM_DRAGLEAVE           0x032d
  617.    #define DM_DROPHELP            0x032c
  618.    #define DM_ENDCONVERSATION     0x032b
  619.    #define DM_PRINT               0x032a
  620.    #define DM_RENDER              0x0329
  621.    #define DM_RENDERCOMPLETE      0x0328
  622.    #define DM_RENDERPREPARE       0x0327
  623.    #define DM_DRAGFILECOMPLETE    0x0326
  624.    #define DM_EMPHASIZETARGET     0x0325
  625.    #define DM_DRAGERROR           0x0324
  626.    #define DM_FILERENDERED        0x0323
  627.    #define DM_RENDERFILE          0x0322
  628.    #define DM_DRAGOVERNOTIFY      0x0321
  629.    #define DM_PRINTOBJECT         0x0320
  630.    #define DM_DISCARDOBJECT       0x031f
  631.  
  632.    #define DRT_ASM                "Assembler Code"   /* drag type constants  */
  633.    #define DRT_BASIC              "BASIC Code"
  634.    #define DRT_BINDATA            "Binary Data"
  635.    #define DRT_BITMAP             "Bitmap"
  636.    #define DRT_C                  "C Code"
  637.    #define DRT_COBOL              "COBOL Code"
  638.    #define DRT_DLL                "Dynamic Link Library"
  639.    #define DRT_DOSCMD             "DOS Command File"
  640.    #define DRT_EXE                "Executable"
  641.    #define DRT_FORTRAN            "FORTRAN Code"
  642.    #define DRT_ICON               "Icon"
  643.    #define DRT_LIB                "Library"
  644.    #define DRT_METAFILE           "Metafile"
  645.    #define DRT_OS2CMD             "OS/2 Command File"
  646.    #define DRT_PASCAL             "Pascal Code"
  647.    #define DRT_RESOURCE           "Resource File"
  648.    #define DRT_TEXT               "Plain Text"
  649.    #define DRT_UNKNOWN            "Unknown"
  650.  
  651.    #define DOR_NODROP             0x0000   /* DM_DRAGOVER response codes */
  652.    #define DOR_DROP               0x0001
  653.    #define DOR_NODROPOP           0x0002
  654.    #define DOR_NEVERDROP          0x0003
  655.  
  656.    #define DO_COPYABLE            0x0001   /* supported operation flags  */
  657.    #define DO_MOVEABLE            0x0002
  658.    #define DO_LINKABLE            0x0004
  659.  
  660.    #define DC_OPEN                0x0001   /* source control flags       */
  661.    #define DC_REF                 0x0002
  662.    #define DC_GROUP               0x0004
  663.    #define DC_CONTAINER           0x0008
  664.    #define DC_PREPARE             0x0010
  665.    #define DC_REMOVEABLEMEDIA     0x0020
  666.  
  667.    #define DO_DEFAULT             0xBFFE   /* Default operation          */
  668.    #define DO_UNKNOWN             0xBFFF   /* Unknown operation          */
  669.    #define DO_COPY                0x0010
  670.    #define DO_MOVE                0x0020
  671.    #define DO_LINK                0x0018
  672.    #define DO_CREATE              0x0040
  673.  
  674.    #define DMFL_TARGETSUCCESSFUL  0x0001   /* transfer reply flags       */
  675.    #define DMFL_TARGETFAIL        0x0002
  676.    #define DMFL_NATIVERENDER      0x0004
  677.    #define DMFL_RENDERRETRY       0x0008
  678.    #define DMFL_RENDEROK          0x0010
  679.    #define DMFL_RENDERFAIL        0x0020
  680.  
  681.    #define DRG_ICON          0x00000001L   /* drag image manipulation    */
  682.    #define DRG_BITMAP        0x00000002L   /*   flags                    */
  683.    #define DRG_POLYGON       0x00000004L
  684.    #define DRG_STRETCH       0x00000008L
  685.    #define DRG_TRANSPARENT   0x00000010L
  686.    #define DRG_CLOSED        0x00000020L
  687.  
  688.    #define DME_IGNOREABORT        1        /* DM_DRAGERROR return values */
  689.    #define DME_IGNORECONTINUE     2
  690.    #define DME_REPLACE            3
  691.    #define DME_RETRY              4
  692.  
  693.    #define DF_MOVE                0x0001   /* DM_DRAGFILECOMPLETE flags  */
  694.    #define DF_SOURCE              0x0002
  695.    #define DF_SUCCESSFUL          0x0004
  696.  
  697.    #define DRR_SOURCE            1L
  698.    #define DRR_TARGET            2L
  699.    #define DRR_ABORT             3L
  700.  
  701.    #define DFF_MOVE               1        /* DM_DRAGERROR operation IDs */
  702.    #define DFF_COPY               2
  703.    #define DFF_DELETE             3
  704.  
  705.  
  706.    typedef LHANDLE HSTR;  /* hstr */
  707.  
  708.    typedef struct _DRAGITEM {   /* ditem */
  709.       HWND    hwndItem;                  /* conversation partner          */
  710.       ULONG   ulItemID;                  /* identifies item being dragged */
  711.       HSTR    hstrType;                  /* type of item                  */
  712.       HSTR    hstrRMF;                   /* rendering mechanism and format*/
  713.       HSTR    hstrContainerName;         /* name of source container      */
  714.       HSTR    hstrSourceName;            /* name of item at source        */
  715.       HSTR    hstrTargetName;            /* suggested name of item at dest*/
  716.       SHORT   cxOffset;                  /* x offset of the origin of the */
  717.       /*                                      image from the mouse hotspot*/
  718.       SHORT   cyOffset;                  /* y offset of the origin of the */
  719.       /*                                      image from the mouse hotspot*/
  720.       USHORT  fsControl;                 /* source item control flags     */
  721.       USHORT  fsSupportedOps;            /* ops supported by source       */
  722.    } DRAGITEM;
  723.    typedef DRAGITEM FAR *PDRAGITEM;
  724.  
  725.    typedef struct _DRAGINFO {   /* dinfo */
  726.       ULONG    cbDraginfo;               /* Size of DRAGINFO and DRAGITEMs*/
  727.       USHORT   cbDragitem;               /* size of DRAGITEM              */
  728.       USHORT   usOperation;              /* current drag operation        */
  729.       HWND     hwndSource;               /* window handle of source       */
  730.       SHORT    xDrop;                    /* x coordinate of drop position */
  731.       SHORT    yDrop;                    /* y coordinate of drop position */
  732.       USHORT   cditem;                   /* count of DRAGITEMs            */
  733.       USHORT   usReserved;               /* reserved for future use       */
  734.    } DRAGINFO;
  735.    typedef DRAGINFO FAR *PDRAGINFO;
  736.  
  737.    typedef struct _DRAGIMAGE {   /* dimg */
  738.       USHORT  cb;                        /* size control block            */
  739.       USHORT  cptl;                      /* count of pts, if DRG_POLYGON  */
  740.       LHANDLE hImage;                    /* image handle passed to DrgDrag*/
  741.       SIZEL   sizlStretch;               /* size to strecth ico or bmp to */
  742.       ULONG   fl;                        /* flags passed to DrgDrag       */
  743.       SHORT   cxOffset;                  /* x offset of the origin of the */
  744.       /*                                      image from the mouse hotspot*/
  745.       SHORT   cyOffset;                  /* y offset of the origin of the */
  746.       /*                                      image from the mouse hotspot*/
  747.    } DRAGIMAGE;
  748.    typedef DRAGIMAGE FAR *PDRAGIMAGE;
  749.  
  750.    typedef struct _DRAGTRANSFER {   /* dxfer */
  751.       ULONG      cb;                     /* size of control block         */
  752.       HWND       hwndClient;             /* handle of target              */
  753.       PDRAGITEM  pditem;                 /* DRAGITEM being transferred    */
  754.       HSTR       hstrSelectedRMF;        /* rendering mech & fmt of choice*/
  755.       HSTR       hstrRenderToName;       /* name source will use          */
  756.       ULONG      ulTargetInfo;           /* reserved for target's use     */
  757.       USHORT     usOperation;            /* operation being performed     */
  758.       USHORT     fsReply;                /* reply flags                   */
  759.    } DRAGTRANSFER;
  760.    typedef DRAGTRANSFER FAR *PDRAGTRANSFER;
  761.  
  762.    typedef struct _RENDERFILE {   /* rndf */
  763.       HWND   hwndDragFiles;              /* conversation window           */
  764.       HSTR   hstrSource;                 /* handle to source file name    */
  765.       HSTR   hstrTarget;                 /* handle to target file name    */
  766.       USHORT fMove;                      /* TRUE - move, FALSE - copy     */
  767.       USHORT usRsvd;                     /* reserved                      */
  768.    } RENDERFILE;
  769.    typedef RENDERFILE FAR *PRENDERFILE;
  770.  
  771.    #ifdef INCL_32
  772.       BOOL      APIENTRY DrgAcceptDroppedFiles(HWND hwnd,
  773.                                                PSZ pszPath,
  774.                                                PSZ pszTypes,
  775.                                                ULONG ulDefaultOp,
  776.                                                ULONG ulRsvd);
  777.  
  778.       PDRAGINFO APIENTRY DrgAllocDraginfo(ULONG cditem);
  779.  
  780.       PDRAGTRANSFER APIENTRY DrgAllocDragtransfer(ULONG cdxfer);
  781.  
  782.       HWND      APIENTRY DrgDrag(HWND hwndSource,
  783.                                  PDRAGINFO pdinfo,
  784.                                  PDRAGIMAGE pdimg,
  785.                                  ULONG cdimg,
  786.                                  LONG vkTerminate,
  787.                                  PVOID pRsvd);
  788.  
  789.       BOOL      APIENTRY DrgDragFiles(HWND hwnd,
  790.                                       PSZ FAR *apszFiles,
  791.                                       PSZ FAR *apszTypes,
  792.                                       PSZ FAR *apszTargets,
  793.                                       ULONG cFiles,
  794.                                       HPOINTER hptrDrag,
  795.                                       ULONG vkTerm,
  796.                                       BOOL fSourceRender,
  797.                                       ULONG ulRsvd);
  798.  
  799.       BOOL      APIENTRY DrgPostTransferMsg(HWND hwnd,
  800.                                             ULONG msg,
  801.                                             PDRAGTRANSFER pdxfer,
  802.                                             ULONG fl,
  803.                                             ULONG ulRsvd,
  804.                                             BOOL fRetry);
  805.  
  806.       BOOL      APIENTRY DrgQueryDragitem(PDRAGINFO pdinfo,
  807.                                           ULONG cbBuffer,
  808.                                           PDRAGITEM pditem,
  809.                                           ULONG iItem);
  810.  
  811.       ULONG     APIENTRY DrgQueryDragitemCount(PDRAGINFO pdinfo);
  812.  
  813.       PDRAGITEM APIENTRY DrgQueryDragitemPtr(PDRAGINFO pdinfo,
  814.                                              ULONG i);
  815.  
  816.       BOOL      APIENTRY DrgQueryNativeRMF(PDRAGITEM pditem,
  817.                                            ULONG cbBuffer,
  818.                                            PCHAR pBuffer);
  819.  
  820.       ULONG     APIENTRY DrgQueryNativeRMFLen(PDRAGITEM pditem);
  821.  
  822.       ULONG     APIENTRY DrgQueryStrName(HSTR hstr,
  823.                                          ULONG cbBuffer,
  824.                                          PSZ pBuffer);
  825.  
  826.       ULONG     APIENTRY DrgQueryStrNameLen(HSTR hstr);
  827.  
  828.       BOOL      APIENTRY DrgQueryTrueType(PDRAGITEM pditem,
  829.                                           ULONG cbBuffer,
  830.                                           PSZ pBuffer);
  831.  
  832.       ULONG     APIENTRY DrgQueryTrueTypeLen(PDRAGITEM pditem);
  833.  
  834.       MRESULT   APIENTRY DrgSendTransferMsg(HWND hwnd,
  835.                                             ULONG msg,
  836.                                             MPARAM mp1,
  837.                                             MPARAM mp2);
  838.  
  839.       BOOL      APIENTRY DrgSetDragitem(PDRAGINFO pdinfo,
  840.                                         PDRAGITEM pditem,
  841.                                         ULONG cbBuffer,
  842.                                         ULONG iItem);
  843.  
  844.       BOOL      APIENTRY DrgSetDragImage(PDRAGINFO pdinfo,
  845.                                          PDRAGIMAGE pdimg,
  846.                                          ULONG cdimg,
  847.                                          PVOID pRsvd);
  848.  
  849.       BOOL      APIENTRY DrgVerifyTypeSet(PDRAGITEM pditem,
  850.                                           PSZ pszType,
  851.                                           ULONG cbMatch,
  852.                                           PSZ pszMatch);
  853.    #else
  854.       BOOL      APIENTRY DrgAcceptDroppedFiles(HWND hwnd,
  855.                                                PSZ pszPath,
  856.                                                PSZ pszTypes,
  857.                                                USHORT usDefaultOp,
  858.                                                USHORT usRsvd);
  859.  
  860.       PDRAGINFO APIENTRY DrgAllocDraginfo(USHORT cditem);
  861.  
  862.       PDRAGTRANSFER APIENTRY DrgAllocDragtransfer(USHORT cdxfer);
  863.  
  864.       HWND      APIENTRY DrgDrag(HWND hwndSource,
  865.                                  PDRAGINFO pdinfo,
  866.                                  PDRAGIMAGE pdimg,
  867.                                  USHORT cdimg,
  868.                                  SHORT vkTerminate,
  869.                                  PVOID pRsvd);
  870.  
  871.       BOOL      APIENTRY DrgDragFiles(HWND hwnd,
  872.                                       PSZ FAR *apszFiles,
  873.                                       PSZ FAR *apszTypes,
  874.                                       PSZ FAR *apszTargets,
  875.                                       USHORT cFiles,
  876.                                       HPOINTER hptrDrag,
  877.                                       USHORT vkTerm,
  878.                                       BOOL fSourceRender,
  879.                                       ULONG ulRsvd);
  880.  
  881.       BOOL      APIENTRY DrgPostTransferMsg(HWND hwnd,
  882.                                             USHORT msg,
  883.                                             PDRAGTRANSFER pdxfer,
  884.                                             USHORT fs,
  885.                                             USHORT usRsvd,
  886.                                             BOOL fRetry);
  887.  
  888.       BOOL      APIENTRY DrgQueryDragitem(PDRAGINFO pdinfo,
  889.                                           USHORT cbBuffer,
  890.                                           PDRAGITEM pditem,
  891.                                           USHORT iItem);
  892.  
  893.       USHORT    APIENTRY DrgQueryDragitemCount(PDRAGINFO pdinfo);
  894.  
  895.       PDRAGITEM APIENTRY DrgQueryDragitemPtr(PDRAGINFO pdinfo,
  896.                                              USHORT i);
  897.  
  898.       BOOL      APIENTRY DrgQueryNativeRMF(PDRAGITEM pditem,
  899.                                            USHORT cbBuffer,
  900.                                            PCHAR pBuffer);
  901.  
  902.       USHORT    APIENTRY DrgQueryNativeRMFLen(PDRAGITEM pditem);
  903.  
  904.       USHORT    APIENTRY DrgQueryStrName(HSTR hstr,
  905.                                          USHORT cbBuffer,
  906.                                          PSZ pBuffer);
  907.  
  908.       USHORT    APIENTRY DrgQueryStrNameLen(HSTR hstr);
  909.  
  910.       BOOL      APIENTRY DrgQueryTrueType(PDRAGITEM pditem,
  911.                                           USHORT cbBuffer,
  912.                                           PSZ pBuffer);
  913.  
  914.       USHORT    APIENTRY DrgQueryTrueTypeLen(PDRAGITEM pditem);
  915.  
  916.       MRESULT   APIENTRY DrgSendTransferMsg(HWND hwnd,
  917.                                             USHORT msg,
  918.                                             MPARAM mp1,
  919.                                             MPARAM mp2);
  920.  
  921.       BOOL      APIENTRY DrgSetDragitem(PDRAGINFO pdinfo,
  922.                                         PDRAGITEM pditem,
  923.                                         USHORT cbBuffer,
  924.                                         USHORT iItem);
  925.  
  926.       BOOL      APIENTRY DrgSetDragImage(PDRAGINFO pdinfo,
  927.                                          PDRAGIMAGE pdimg,
  928.                                          USHORT cdimg,
  929.                                          PVOID pRsvd);
  930.  
  931.       BOOL      APIENTRY DrgVerifyTypeSet(PDRAGITEM pditem,
  932.                                           PSZ pszType,
  933.                                           USHORT cbMatch,
  934.                                           PSZ pszMatch);
  935.    #endif
  936.  
  937.    BOOL      APIENTRY DrgAccessDraginfo(PDRAGINFO pdinfo);
  938.  
  939.    HSTR      APIENTRY DrgAddStrHandle(PSZ psz);
  940.  
  941.    BOOL      APIENTRY DrgDeleteDraginfoStrHandles(PDRAGINFO pdinfo);
  942.  
  943.    BOOL      APIENTRY DrgDeleteStrHandle(HSTR hstr);
  944.  
  945.    BOOL      APIENTRY DrgFreeDraginfo(PDRAGINFO pdinfo);
  946.  
  947.    BOOL      APIENTRY DrgFreeDragtransfer(PDRAGTRANSFER pdxfer);
  948.  
  949.    HPS       APIENTRY DrgGetPS(HWND hwnd);
  950.  
  951.    BOOL      APIENTRY DrgPushDraginfo(PDRAGINFO pdinfo,
  952.                                       HWND hwndDest);
  953.  
  954.    BOOL      APIENTRY DrgReleasePS(HPS hps);
  955.  
  956.    BOOL      APIENTRY DrgSetDragPointer(PDRAGINFO pdinfo,
  957.                                         HPOINTER hptr);
  958.  
  959.    BOOL      APIENTRY DrgVerifyNativeRMF(PDRAGITEM pditem,
  960.                                          PSZ pszRMF);
  961.  
  962.    BOOL      APIENTRY DrgVerifyRMF(PDRAGITEM pditem,
  963.                                    PSZ pszMech,
  964.                                    PSZ pszFmt);
  965.  
  966.    BOOL      APIENTRY DrgVerifyTrueType(PDRAGITEM pditem,
  967.                                         PSZ pszType);
  968.  
  969.    BOOL      APIENTRY DrgVerifyType(PDRAGITEM pditem,
  970.                                     PSZ pszType);
  971.  
  972. #endif  /* !INCL_WINSTDDRAG_INCLUDED && INCL_WINSTDDRAG */
  973.  
  974.  
  975. #if !(defined (INCL_WINSTDCNR_INCLUDED) || !defined (INCL_WINSTDCNR))
  976.    #define INCL_WINSTDCNR_INCLUDED
  977.    /**********************************************************************/
  978.    /*                                                                    */
  979.    /*                         C O N T A I N E R                          */
  980.    /*                                                                    */
  981.    /**********************************************************************/
  982.  
  983.    /**********************************************************************/
  984.    /* Error constants                                                    */
  985.    /**********************************************************************/
  986.    #define PMERR_NOFILTERED_ITEMS          0x1f02
  987.    #define PMERR_COMPARISON_FAILED         0x1f03
  988.    #define PMERR_RECORD_CURRENTLY_INSERTED 0x1f04
  989.    #define PMERR_FI_CURRENTLY_INSERTED     0x1f05
  990.  
  991.    /**********************************************************************/
  992.    /* Container control styles.                                          */
  993.    /**********************************************************************/
  994.    #define CCS_EXTENDSEL             0x00000001L
  995.    #define CCS_MULTIPLESEL           0x00000002L
  996.    #define CCS_SINGLESEL             0x00000004L
  997.    #define CCS_AUTOPOSITION          0x00000008L
  998.    #define CCS_VERIFYPOINTERS        0x00000010L
  999.    #define CCS_READONLY              0x00000020L
  1000.    #define CCS_MINIRECORDCORE        0x00000040L
  1001.  
  1002.    /**********************************************************************/
  1003.    /* view identifiers           (flWindowAttr)                          */
  1004.    /**********************************************************************/
  1005.    #define CV_TEXT                  0x00000001L  /* text view            */
  1006.    #define CV_NAME                  0x00000002L  /* name view            */
  1007.    #define CV_ICON                  0x00000004L  /* icon view            */
  1008.    #define CV_DETAIL                0x00000008L  /* detail view          */
  1009.    #define CV_FLOW                  0x00000010L  /* flow items           */
  1010.    #define CV_MINI                  0x00000020L  /* use mini icon        */
  1011.    #define CV_TREE                  0x00000040L  /* tree view            */
  1012.  
  1013.    /**********************************************************************/
  1014.    /* Container Attributes        (flWindowAttr)                         */
  1015.    /**********************************************************************/
  1016.    #define CA_CONTAINERTITLE        0x00000200L
  1017.    #define CA_TITLESEPARATOR        0x00000400L
  1018.    #define CA_TITLELEFT             0x00000800L
  1019.    #define CA_TITLERIGHT            0x00001000L
  1020.    #define CA_TITLECENTER           0x00002000L
  1021.    #define CA_OWNERDRAW             0x00004000L
  1022.    #define CA_DETAILSVIEWTITLES     0x00008000L
  1023.    #define CA_ORDEREDTARGETEMPH     0x00010000L
  1024.    #define CA_DRAWBITMAP            0x00020000L
  1025.    #define CA_DRAWICON              0x00040000L
  1026.    #define CA_TITLEREADONLY         0x00080000L
  1027.    #define CA_OWNERPAINTBACKGROUND  0x00100000L
  1028.    #define CA_MIXEDTARGETEMPH       0x00200000L
  1029.    #define CA_TREELINE              0x00400000L
  1030.  
  1031.    /**********************************************************************/
  1032.    /* child window IDs                                                   */
  1033.    /**********************************************************************/
  1034.    #define CID_LEFTCOLTITLEWND     0x7FF0   /* column title (left)       */
  1035.    #define CID_RIGHTCOLTITLEWND    0x7FF1   /* right column title        */
  1036.    #define CID_BLANKBOX            0x7FF2   /* blank box at bottom right */
  1037.    #define CID_HSCROLL             0x7FF3   /* horizontal scroll bar     */
  1038.    #define CID_RIGHTHSCROLL        0x7FF4   /* right horz scroll bar     */
  1039.    #define CID_CNRTITLEWND         0x7FF5   /* Container title window    */
  1040.    #define CID_LEFTDVWND           0x7FF7   /* Left Details View window  */
  1041.    #define CID_RIGHTDVWND          0x7FF8   /* Right Details View window */
  1042.    #define CID_VSCROLL             0x7FF9   /* vertical scroll bar       */
  1043.    #define CID_MLE                 0x7FFA   /* MLE window for direct edit*/
  1044.  
  1045.    /**********************************************************************/
  1046.    /* Bitmap descriptor array element.                                   */
  1047.    /**********************************************************************/
  1048.    typedef struct _TREEITEMDESC {   /* treend */
  1049.       HBITMAP       hbmExpanded;
  1050.       HBITMAP       hbmCollapsed;
  1051.       HPOINTER      hptrExpanded;
  1052.       HPOINTER      hptrCollapsed;
  1053.    } TREEITEMDESC;
  1054.    typedef TREEITEMDESC FAR *PTREEITEMDESC;
  1055.  
  1056.    /**********************************************************************/
  1057.    /* Field Info data structure, attribute and data types, CV_DETAIL     */
  1058.    /**********************************************************************/
  1059.    typedef struct _FIELDINFO {    /* fldinfo */
  1060.       ULONG      cb;                  /* size of FIELDINFO struct       */
  1061.       ULONG      flData;              /* attributes of field's data     */
  1062.       ULONG      flTitle;             /* attributes of field's title    */
  1063.       PVOID      pTitleData;          /* title data (default is string) */
  1064.       /*                                 If CFT_BITMAP, must be HBITMAP */
  1065.       ULONG      offStruct;           /* offset from RECORDCORE to data */
  1066.       PVOID      pUserData;           /* pointer to user data           */
  1067.       struct _FIELDINFO FAR *pNextFieldInfo; /* pointer to next linked  */
  1068.       /*                                          FIELDINFO structure   */
  1069.       ULONG      cxWidth;             /* width of field in pels         */
  1070.    } FIELDINFO;
  1071.    typedef FIELDINFO FAR *PFIELDINFO;
  1072.  
  1073.    /**********************************************************************/
  1074.    /* RECORDCORE data structure , attribute values                       */
  1075.    /**********************************************************************/
  1076.    typedef struct _RECORDCORE {   /* recc */
  1077.       ULONG       cb;
  1078.       ULONG       flRecordAttr;        /* record attributes             */
  1079.       POINTL      ptlIcon;             /* Position of CV_ICON item      */
  1080.       struct _RECORDCORE FAR *preccNextRecord;   /* ptr to next record  */
  1081.       PSZ         pszIcon;             /* Text for CV_ICON view         */
  1082.       HPOINTER    hptrIcon;            /* Icon to display for ~CV_MINI  */
  1083.       HPOINTER    hptrMiniIcon;        /* Icon to display for CV_MINI   */
  1084.       HBITMAP     hbmBitmap;           /* Bitmap to display for ~CV_MINI*/
  1085.       HBITMAP     hbmMiniBitmap;       /* Bitmap to display for CV_MINI */
  1086.       PTREEITEMDESC pTreeItemDesc;     /* Icons for the tree view       */
  1087.       PSZ         pszText;             /* Text for CV_TEXT view         */
  1088.       PSZ         pszName;             /* Text for CV_NAME view         */
  1089.       PSZ         pszTree;             /* Text for CV_TREE view         */
  1090.    } RECORDCORE;
  1091.    typedef RECORDCORE FAR *PRECORDCORE;
  1092.  
  1093.    /**********************************************************************/
  1094.    /* MINIRECORDCORE data structure, attribute values                    */
  1095.    /**********************************************************************/
  1096.    typedef struct _MINIRECORDCORE {   /* minirec */
  1097.       ULONG       cb;
  1098.       ULONG       flRecordAttr;        /* record attributes             */
  1099.       POINTL      ptlIcon;             /* Position of CV_ICON item      */
  1100.       struct _MINIRECORDCORE FAR *preccNextRecord; /*ptr to next record */
  1101.       PSZ         pszIcon;             /* Text for CV_ICON view         */
  1102.       HPOINTER    hptrIcon;            /* Icon to display for ~CV_MINI  */
  1103.    } MINIRECORDCORE;
  1104.    typedef MINIRECORDCORE FAR *PMINIRECORDCORE;
  1105.  
  1106.    /**********************************************************************/
  1107.    /* CNRINFO data structure, describes the container control.           */
  1108.    /**********************************************************************/
  1109.    typedef struct _CNRINFO {   /* ccinfo */
  1110.       ULONG       cb;                  /* size of CNRINFO struct        */
  1111.       PVOID       pSortRecord;         /* ptr to sort function,         */
  1112.       /*                                    RECORDCORE                  */
  1113.       PFIELDINFO  pFieldInfoLast;      /* pointer to last column in     */
  1114.       /*                                    left pane of a split window.*/
  1115.       PFIELDINFO  pFieldInfoObject;    /* Pointer to a column to        */
  1116.       /*                                  represent an object.  This is */
  1117.       /*                                  the column which will receive */
  1118.       /*                                  IN-USE emphasis.              */
  1119.       PSZ         pszCnrTitle;         /* text for container title. One */
  1120.       /*                                    string separated by line    */
  1121.       /*                                    separators for multi-lines  */
  1122.       ULONG       flWindowAttr;        /* container attrs - CV_*, CA_*  */
  1123.       POINTL      ptlOrigin;           /* lower-left origin in virtual  */
  1124.       /*                                    coordinates. CV_ICON view   */
  1125.       ULONG       cDelta;              /* Application defined threshold */
  1126.       /*                                    or number of records from   */
  1127.       /*                                    either end of the list.     */
  1128.       ULONG       cRecords;            /* number of records in container*/
  1129.       SIZEL       slBitmapOrIcon;      /* size of bitmap in pels        */
  1130.       SIZEL       slTreeBitmapOrIcon;  /* size of tree bitmaps in pels  */
  1131.       HBITMAP     hbmExpanded;         /* bitmap  for tree node         */
  1132.       HBITMAP     hbmCollapsed;        /* bitmap  for tree node         */
  1133.       HPOINTER    hptrExpanded;        /* icon    for tree node         */
  1134.       HPOINTER    hptrCollapsed;       /* icon    for tree node         */
  1135.       LONG        cyLineSpacing;       /* space between two rows        */
  1136.       LONG        cxTreeIndent;        /* indent for children           */
  1137.       LONG        cxTreeLine;          /* thickness of the Tree Line    */
  1138.       ULONG       cFields;             /* number of fields  in container*/
  1139.       LONG        xVertSplitbar;       /* position relative to the      */
  1140.       /*                                    container (CV_DETAIL); if   */
  1141.       /*                                    0xFFFF then unsplit         */
  1142.    } CNRINFO;
  1143.    typedef CNRINFO FAR *PCNRINFO;
  1144.  
  1145.    typedef struct _CDATE {   /* cdate */
  1146.       UCHAR   day;                         /* current day               */
  1147.       UCHAR   month;                       /* current month             */
  1148.       USHORT  year;                        /* current year              */
  1149.    } CDATE;
  1150.    typedef CDATE FAR *PCDATE;
  1151.  
  1152.    typedef struct _CTIME {   /* ctime */
  1153.       UCHAR   hours;                       /* current hour              */
  1154.       UCHAR   minutes;                     /* current minute            */
  1155.       UCHAR   seconds;                     /* current second            */
  1156.       UCHAR   ucReserved;                  /* reserved                  */
  1157.    } CTIME;
  1158.    typedef CTIME FAR *PCTIME;
  1159.  
  1160.    /**********************************************************************/
  1161.    /* attribute and type values for flData and flTitle members of        */
  1162.    /* FIELDINFO, CFA_ (attributes), CFT_ (types)                         */
  1163.    /**********************************************************************/
  1164.    #define CFA_LEFT            0x00000001L /* left align text            */
  1165.    #define CFA_RIGHT           0x00000002L /* right align text           */
  1166.    #define CFA_CENTER          0x00000004L /* center text                */
  1167.    #define CFA_TOP             0x00000008L /* top-align text             */
  1168.    #define CFA_VCENTER         0x00000010L /* vertically center text     */
  1169.    #define CFA_BOTTOM          0x00000020L /* bottom-align text          */
  1170.    #define CFA_INVISIBLE       0x00000040L /* Specify invisible column.  */
  1171.    #define CFA_BITMAPORICON    0x00000100L /* field title is bitmap      */
  1172.    #define CFA_SEPARATOR       0x00000200L /* vert sep, right of fld     */
  1173.    #define CFA_HORZSEPARATOR   0x00000400L /* horz sep, bottom of fld    */
  1174.  
  1175.    #define CFA_STRING          0x00000800L /* string of characters       */
  1176.    #define CFA_OWNER           0x00001000L /* ownerdraw field            */
  1177.    #define CFA_DATE            0x00002000L /* date structure             */
  1178.    #define CFA_TIME            0x00004000L /* time structure             */
  1179.    #define CFA_FIREADONLY      0x00008000L /* Column is read-only.       */
  1180.    #define CFA_FITITLEREADONLY 0x00010000L /* Column Title is read-only  */
  1181.    #define CFA_ULONG           0x00020000L /* Column is number format    */
  1182.  
  1183.    /**********************************************************************/
  1184.    /* attribute values for flRecordAttr member of RECORDCORE             */
  1185.    /**********************************************************************/
  1186.    #define CRA_SELECTED        0x00000001L /* record is selected         */
  1187.    #define CRA_TARGET          0x00000002L /* record has target emphasis */
  1188.    #define CRA_CURSORED        0x00000004L /* cursor is on the record    */
  1189.    #define CRA_INUSE           0x00000008L /* record has in-use emphasis */
  1190.    #define CRA_FILTERED        0x00000010L /* record has been filtered   */
  1191.    #define CRA_DROPONABLE      0x00000020L /* record can be dropped on   */
  1192.    #define CRA_RECORDREADONLY  0x00000040L /* record is read-only        */
  1193.    #define CRA_EXPANDED        0x00000080L /* record is expanded         */
  1194.    #define CRA_COLLAPSED       0x00000100L /* record is collapsed        */
  1195.  
  1196.    /**********************************************************************/
  1197.    /* Container messages                                                 */
  1198.    /**********************************************************************/
  1199.    #define CM_ALLOCDETAILFIELDINFO       0x0330
  1200.    #define CM_ALLOCRECORD                0x0331
  1201.    #define CM_ARRANGE                    0x0332
  1202.    #define CM_ERASERECORD                0x0333
  1203.    #define CM_FILTER                     0x0334
  1204.    #define CM_FREEDETAILFIELDINFO        0x0335
  1205.    #define CM_FREERECORD                 0x0336
  1206.    #define CM_HORZSCROLLSPLITWINDOW      0x0337
  1207.    #define CM_INSERTDETAILFIELDINFO      0x0338
  1208.    #define CM_INSERTRECORD               0x0339
  1209.    #define CM_INVALIDATEDETAILFIELDINFO  0x033a
  1210.    #define CM_INVALIDATERECORD           0x033b
  1211.    #define CM_PAINTBACKGROUND            0x033c
  1212.    #define CM_QUERYCNRINFO               0x033d
  1213.    #define CM_QUERYDETAILFIELDINFO       0x033e
  1214.    #define CM_QUERYDRAGIMAGE             0x033f
  1215.    #define CM_QUERYRECORD                0x0340
  1216.    #define CM_QUERYRECORDEMPHASIS        0x0341
  1217.    #define CM_QUERYRECORDFROMRECT        0x0342
  1218.    #define CM_QUERYRECORDRECT            0x0343
  1219.    #define CM_QUERYVIEWPORTRECT          0x0344
  1220.    #define CM_REMOVEDETAILFIELDINFO      0x0345
  1221.    #define CM_REMOVERECORD               0x0346
  1222.    #define CM_SCROLLWINDOW               0x0347
  1223.    #define CM_SEARCHSTRING               0x0348
  1224.    #define CM_SETCNRINFO                 0x0349
  1225.    #define CM_SETRECORDEMPHASIS          0x034a
  1226.    #define CM_SORTRECORD                 0x034b
  1227.    #define CM_OPENEDIT                   0x034c
  1228.    #define CM_CLOSEEDIT                  0x034d
  1229.    #define CM_COLLAPSETREE               0x034e
  1230.    #define CM_EXPANDTREE                 0x034f
  1231.    #define CM_QUERYRECORDINFO            0x0350
  1232.  
  1233.    /**********************************************************************/
  1234.    /* Container notifications                                            */
  1235.    /**********************************************************************/
  1236.    #define CN_DRAGAFTER                  101
  1237.    #define CN_DRAGLEAVE                  102
  1238.    #define CN_DRAGOVER                   103
  1239.    #define CN_DROP                       104
  1240.    #define CN_DROPHELP                   105
  1241.    #define CN_ENTER                      106
  1242.    #define CN_INITDRAG                   107
  1243.    #define CN_EMPHASIS                   108
  1244.    #define CN_KILLFOCUS                  109
  1245.    #define CN_SCROLL                     110
  1246.    #define CN_QUERYDELTA                 111
  1247.    #define CN_SETFOCUS                   112
  1248.    #define CN_REALLOCPSZ                 113
  1249.    #define CN_BEGINEDIT                  114
  1250.    #define CN_ENDEDIT                    115
  1251.    #define CN_COLLAPSETREE               116
  1252.    #define CN_EXPANDTREE                 117
  1253.    #define CN_HELP                       118
  1254.    #define CN_CONTEXTMENU                119
  1255.    #define CN_VERIFYEDIT                 134
  1256.  
  1257.    /**********************************************************************/
  1258.    /*   Data Structures for Message Parameters                           */
  1259.    /**********************************************************************/
  1260.  
  1261.    /**********************************************************************/
  1262.    /* Container Direct Manipulation structures                           */
  1263.    /**********************************************************************/
  1264.    typedef struct _CNRDRAGINIT {   /* cdrginit */
  1265.       HWND        hwndCnr;                 /* Container window handle   */
  1266.       PRECORDCORE pRecord;                 /* record under mouse ptr    */
  1267.       LONG        x;                       /* x coordinate of mouse ptr */
  1268.       LONG        y;                       /* y coordinate of mouse ptr */
  1269.       LONG        cx;                      /* x offset from record      */
  1270.       LONG        cy;                      /* y offset from record      */
  1271.    } CNRDRAGINIT;
  1272.    typedef CNRDRAGINIT FAR *PCNRDRAGINIT;
  1273.  
  1274.    /**********************************************************************/
  1275.    /* Data structure for CM_INSERTDETAILFIELDINFO                        */
  1276.    /* This structure is used by the application to specify the position  */
  1277.    /* of the FieldInfo structures they are inserting.                    */
  1278.    /**********************************************************************/
  1279.    typedef struct _FIELDINFOINSERT {   /* fiins */
  1280.       ULONG       cb;                  /* Size of structure.             */
  1281.       PFIELDINFO  pFieldInfoOrder;     /* Specifies the order of the     */
  1282.       /*                                  FieldInfo structures.          */
  1283.       ULONG       fInvalidateFieldInfo;/* Invalidate on Insert.          */
  1284.       ULONG       cFieldInfoInsert;    /* The number of FieldInfo        */
  1285.       /*                                  structures to insert.          */
  1286.    } FIELDINFOINSERT;
  1287.    typedef FIELDINFOINSERT FAR *PFIELDINFOINSERT;
  1288.  
  1289.    /**********************************************************************/
  1290.    /* Data structure for CM_INSERTRECORD                                 */
  1291.    /**********************************************************************/
  1292.    typedef struct _RECORDINSERT {   /* recins */
  1293.       ULONG       cb;
  1294.       PRECORDCORE pRecordOrder;
  1295.       PRECORDCORE pRecordParent;
  1296.       ULONG       fInvalidateRecord;
  1297.       ULONG       zOrder;
  1298.       ULONG       cRecordsInsert;
  1299.    } RECORDINSERT;
  1300.    typedef RECORDINSERT FAR *PRECORDINSERT;
  1301.  
  1302.    /**********************************************************************/
  1303.    /* Data structure for CM_QUERYRECORDFROMRECT                          */
  1304.    /**********************************************************************/
  1305.    typedef struct _QUERYRECFROMRECT {   /* qrecfrct */
  1306.       ULONG   cb;
  1307.       RECTL   rect;
  1308.       ULONG   fsSearch;
  1309.    } QUERYRECFROMRECT;
  1310.    typedef QUERYRECFROMRECT FAR *PQUERYRECFROMRECT;
  1311.  
  1312.    /**********************************************************************/
  1313.    /* Data structure for CM_QUERYRECORDRECT                              */
  1314.    /**********************************************************************/
  1315.    typedef struct _QUERYRECORDRECT {   /* qrecrct */
  1316.       ULONG        cb;
  1317.       PRECORDCORE  pRecord;
  1318.       ULONG        fRightSplitWindow;
  1319.       ULONG        fsExtent;
  1320.    } QUERYRECORDRECT;
  1321.    typedef QUERYRECORDRECT FAR *PQUERYRECORDRECT;
  1322.  
  1323.    /**********************************************************************/
  1324.    /* Data structure for CM_SEARCHSTRING                                 */
  1325.    /**********************************************************************/
  1326.    typedef struct _SEARCHSTRING {   /* srchstr */
  1327.       ULONG  cb;
  1328.       PSZ    pszSearch;
  1329.       ULONG  fsPrefix;
  1330.       ULONG  fsCaseSensitive;
  1331.       ULONG  usView;
  1332.    } SEARCHSTRING;
  1333.    typedef SEARCHSTRING FAR *PSEARCHSTRING;
  1334.  
  1335.    #ifdef INCL_WINSTDDRAG
  1336.       /*******************************************************************/
  1337.       /* Data Structure for CN_DRAGLEAVE,CN_DRAGOVER,CN_DROP,CN_DROPHELP */
  1338.       /*******************************************************************/
  1339.       typedef struct _CNRDRAGINFO {   /* cdrginfo */
  1340.          PDRAGINFO   pDragInfo;
  1341.          PRECORDCORE pRecord;
  1342.       } CNRDRAGINFO;
  1343.       typedef CNRDRAGINFO FAR *PCNRDRAGINFO;
  1344.    #endif
  1345.  
  1346.    /**********************************************************************/
  1347.    /* Data structure for CN_EMPHASIS                                     */
  1348.    /**********************************************************************/
  1349.    typedef struct _NOTIFYRECORDEMPHASIS {   /* nrecemph */
  1350.       HWND        hwndCnr;
  1351.       PRECORDCORE pRecord;
  1352.       ULONG       fEmphasisMask;
  1353.    } NOTIFYRECORDEMPHASIS;
  1354.    typedef NOTIFYRECORDEMPHASIS FAR *PNOTIFYRECORDEMPHASIS;
  1355.  
  1356.    /**********************************************************************/
  1357.    /* Data structure for CN_ENTER                                        */
  1358.    /**********************************************************************/
  1359.    typedef struct _NOTIFYRECORDENTER {   /* notrecen */
  1360.       HWND        hwndCnr;
  1361.       ULONG       fKey;
  1362.       PRECORDCORE pRecord;
  1363.    } NOTIFYRECORDENTER;
  1364.    typedef NOTIFYRECORDENTER FAR *PNOTIFYRECORDENTER;
  1365.  
  1366.    /**********************************************************************/
  1367.    /* Data structure for CN_QUERYDELTA                                   */
  1368.    /**********************************************************************/
  1369.    typedef struct _NOTIFYDELTA {   /* notdlt */
  1370.       HWND        hwndCnr;
  1371.       ULONG       fDelta;
  1372.    } NOTIFYDELTA;
  1373.    typedef NOTIFYDELTA FAR *PNOTIFYDELTA;
  1374.  
  1375.    /**********************************************************************/
  1376.    /* Data structure for CN_SCROLL                                       */
  1377.    /**********************************************************************/
  1378.    typedef struct _NOTIFYSCROLL {   /* notscr */
  1379.       HWND        hwndCnr;
  1380.       LONG        lScrollInc;
  1381.       ULONG       fScroll;
  1382.    } NOTIFYSCROLL;
  1383.    typedef NOTIFYSCROLL FAR *PNOTIFYSCROLL;
  1384.  
  1385.    /**********************************************************************/
  1386.    /* Data structure for CN_REALLOCPSZ                                   */
  1387.    /**********************************************************************/
  1388.    typedef struct _CNREDITDATA {   /* cnredat */
  1389.       ULONG        cb;
  1390.       HWND         hwndCnr;
  1391.       PRECORDCORE  pRecord;
  1392.       PFIELDINFO   pFieldInfo;
  1393.       PSZ FAR     *ppszText;                   /* address of PSZ        */
  1394.       ULONG        cbText;                     /* size of the new text  */
  1395.       ULONG        id;
  1396.    } CNREDITDATA;
  1397.    typedef CNREDITDATA FAR *PCNREDITDATA;
  1398.  
  1399.    /**********************************************************************/
  1400.    /* Data structure for CM_PAINTBACKGROUND                              */
  1401.    /**********************************************************************/
  1402.    typedef struct _OWNERBACKGROUND {   /* ownbckg */
  1403.       HWND    hwnd;
  1404.       HPS     hps;
  1405.       RECTL   rclBackground;
  1406.       LONG    idWindow;
  1407.    } OWNERBACKGROUND;
  1408.    typedef OWNERBACKGROUND FAR *POWNERBACKGROUND;
  1409.  
  1410.    /**********************************************************************/
  1411.    /* Data structure used as part of WM_DRAWITEM                         */
  1412.    /**********************************************************************/
  1413.    typedef struct _CNRDRAWITEMINFO {   /* cnrdrwii */
  1414.       PRECORDCORE  pRecord;
  1415.       PFIELDINFO   pFieldInfo;
  1416.    } CNRDRAWITEMINFO;
  1417.    typedef CNRDRAWITEMINFO FAR *PCNRDRAWITEMINFO;
  1418.  
  1419.    /**********************************************************************/
  1420.    /* Message parameter flags                                            */
  1421.    /**********************************************************************/
  1422.    #define CMA_TOP              0x0001       /* Place at top of zorder   */
  1423.    #define CMA_BOTTOM           0x0002       /* Place at bottom of zorder*/
  1424.    #define CMA_LEFT             0x0004
  1425.    #define CMA_RIGHT            0x0008
  1426.  
  1427.    #define CMA_FIRST            0x0010       /* Add record as first      */
  1428.    #define CMA_LAST             0x0020
  1429.    #define CMA_END              0x0040       /* Add record to end of list*/
  1430.    #define CMA_PREV             0x0080
  1431.    #define CMA_NEXT             0x0100
  1432.  
  1433.    #define CMA_HORIZONTAL       0x0200
  1434.    #define CMA_VERTICAL         0x0400
  1435.    #define CMA_ICON             0x0800
  1436.    #define CMA_TEXT             0x1000
  1437.    #define CMA_PARTIAL          0x2000
  1438.    #define CMA_COMPLETE         0x4000
  1439.  
  1440.    #define CMA_PARENT           0x0001
  1441.    #define CMA_FIRSTCHILD       0x0002
  1442.    #define CMA_LASTCHILD        0x0004
  1443.  
  1444.    #define CMA_CNRTITLE         0x0001       /* Container title          */
  1445.    #define CMA_DELTA            0x0002       /* Application defined      */
  1446.    #define CMA_FLWINDOWATTR     0x0004       /* Container attributes     */
  1447.    #define CMA_LINESPACING      0x0008
  1448.    #define CMA_PFIELDINFOLAST   0x0010       /* Ptr to last column in    */
  1449.  
  1450.    #define CMA_PSORTRECORD      0x0020       /* Pointer to sort function */
  1451.    #define CMA_PTLORIGIN        0x0040       /* Lower left origin        */
  1452.    #define CMA_SLBITMAPORICON   0x0080       /* Size  of bitmap          */
  1453.    #define CMA_XVERTSPLITBAR    0x0100       /* Splitbar position        */
  1454.    #define CMA_PFIELDINFOOBJECT 0x0200       /* Pointer to IN-USE        */
  1455.    /*                                             emphasis column.       */
  1456.  
  1457.    #define CMA_TREEICON           0x0400     /* Icon for tree node      */
  1458.    #define CMA_TREEBITMAP         0x0800     /* bitmap for tree node    */
  1459.    #define CMA_CXTREEINDENT       0x1000     /* indent for children     */
  1460.    #define CMA_CXTREELINE         0x2000     /* thickness of tree line  */
  1461.    #define CMA_SLTREEBITMAPORICON 0x4000     /* size of icon of tree node */
  1462.  
  1463.    #define CMA_ITEMORDER        0x0001       /* QueryRecord search flags */
  1464.    #define CMA_WINDOW           0x0002
  1465.    #define CMA_WORKSPACE        0x0004
  1466.    #define CMA_ZORDER           0x0008
  1467.  
  1468.    #define CMA_DELTATOP         0x0001       /* Industrial - top delta   */
  1469.    #define CMA_DELTABOT         0x0002       /* Industrial - bottom delta*/
  1470.    #define CMA_DELTAHOME        0x0004       /* Industrial - top of list */
  1471.    #define CMA_DELTAEND         0x0008       /* Industrial - end of list */
  1472.  
  1473.    #define CMA_NOREPOSITION     0x0001       /* InvalidateRecord flags   */
  1474.    #define CMA_REPOSITION       0x0002
  1475.    #define CMA_TEXTCHANGED      0x0004
  1476.    #define CMA_ERASE            0x0008
  1477.  
  1478.    #define CMA_FREE             0x0001
  1479.    #define CMA_INVALIDATE       0x0002
  1480.  
  1481. #endif /* !INCL_WINSTDCNR_INCLUDED && INCL_WINSTDCNR */
  1482.  
  1483.  
  1484. #if !(defined (INCL_WINSTDSLIDER_INCLUDED) || !defined (INCL_WINSTDSLIDER))
  1485.    #define INCL_WINSTDSLIDER_INCLUDED
  1486.    /**********************************************************************/
  1487.    /*                                                                    */
  1488.    /*                            S L I D E R                             */
  1489.    /*                                                                    */
  1490.    /**********************************************************************/
  1491.  
  1492.    /**********************************************************************/
  1493.    /* Define messages for the slider control                             */
  1494.    /**********************************************************************/
  1495.    #define SLM_ADDDETENT          0x0369    /* Add detent niche          */
  1496.    #define SLM_QUERYDETENTPOS     0x036a    /* Query position of detent  */
  1497.    #define SLM_QUERYSCALETEXT     0x036b    /* Query text at tick number */
  1498.    #define SLM_QUERYSLIDERINFO    0x036c    /* Query slider information  */
  1499.    #define SLM_QUERYTICKPOS       0x036d    /* Query position of tick    */
  1500.    #define SLM_QUERYTICKSIZE      0x036e    /* Query size of tick        */
  1501.    #define SLM_REMOVEDETENT       0x036f    /* Remove detent niche       */
  1502.    #define SLM_SETSCALETEXT       0x0370    /* Set text above tick       */
  1503.    #define SLM_SETSLIDERINFO      0x0371    /* Set slider parameters     */
  1504.    #define SLM_SETTICKSIZE        0x0372    /* Set size of tick          */
  1505.    #define SLN_CHANGE             1         /* Slider position changed   */
  1506.    #define SLN_SLIDERTRACK        2         /* Slider dragged by user    */
  1507.    #define SLN_SETFOCUS           3         /* Slider gaining focus      */
  1508.    #define SLN_KILLFOCUS          4         /* Slider losing focus       */
  1509.  
  1510.    /**********************************************************************/
  1511.    /* Slider control data structure                                      */
  1512.    /**********************************************************************/
  1513.    typedef struct _SLDCDATA {   /* sldcd */
  1514.       ULONG   cbSize;                /* Size of control block             */
  1515.       USHORT  usScale1Increments;    /* # of divisions on scale           */
  1516.       USHORT  usScale1Spacing;       /* Space in pels between increments  */
  1517.       USHORT  usScale2Increments;    /* # of divisions on scale           */
  1518.       USHORT  usScale2Spacing;       /* Space in pels between increments  */
  1519.    } SLDCDATA;
  1520.    typedef SLDCDATA FAR *PSLDCDATA;
  1521.  
  1522.    /**********************************************************************/
  1523.    /* Slider control style flag definition                               */
  1524.    /**********************************************************************/
  1525.    #define SLS_HORIZONTAL       0x00000000L /* Orient slider horizontally*/
  1526.    #define SLS_VERTICAL         0x00000001L /* Orient slider vertically  */
  1527.    #define SLS_CENTER           0x00000000L /* Center shaft in window    */
  1528.    #define SLS_BOTTOM           0x00000002L /* Offset shaft to bottom (H)*/
  1529.    #define SLS_TOP              0x00000004L /* Offset shaft to top (H)   */
  1530.    #define SLS_LEFT             0x00000002L /* Offset shaft to left (V)  */
  1531.    #define SLS_RIGHT            0x00000004L /* Offset shaft to right (V) */
  1532.    #define SLS_SNAPTOINCREMENT  0x00000008L /* Snap to nearest increment */
  1533.    #define SLS_BUTTONSBOTTOM    0x00000010L /* Add buttons at shaft bot. */
  1534.    #define SLS_BUTTONSTOP       0x00000020L /* Add buttons at shaft top  */
  1535.    #define SLS_BUTTONSLEFT      0x00000010L /* Add buttons left of shaft */
  1536.    #define SLS_BUTTONSRIGHT     0x00000020L /* Add buttons right of shaft*/
  1537.    #define SLS_OWNERDRAW        0x00000040L /* Owner draw some fields    */
  1538.    #define SLS_READONLY         0x00000080L /* Provide a read only slider*/
  1539.    #define SLS_RIBBONSTRIP      0x00000100L /* Provide a ribbon strip    */
  1540.    #define SLS_HOMEBOTTOM       0x00000000L /* Set home position at bot. */
  1541.    #define SLS_HOMETOP          0x00000200L /* Set home position at top  */
  1542.    #define SLS_HOMELEFT         0x00000000L /* Set home position at left */
  1543.    #define SLS_HOMERIGHT        0x00000200L /* Set home position at right*/
  1544.    #define SLS_PRIMARYSCALE1    0x00000000L /* Scale 1 is primary scale  */
  1545.    #define SLS_PRIMARYSCALE2    0x00000400L /* Scale 2 is primary scale  */
  1546.  
  1547.    /**********************************************************************/
  1548.    /* Message attributes for setting and querying slider components      */
  1549.    /**********************************************************************/
  1550.    #define SMA_SCALE1               0x0001
  1551.    #define SMA_SCALE2               0x0002
  1552.    #define SMA_SHAFTDIMENSIONS      0x0000
  1553.    #define SMA_SHAFTPOSITION        0x0001
  1554.    #define SMA_SLIDERARMDIMENSIONS  0x0002
  1555.    #define SMA_SLIDERARMPOSITION    0x0003
  1556.    #define SMA_RANGEVALUE           0x0000
  1557.    #define SMA_INCREMENTVALUE       0x0001
  1558.    #define SMA_SETALLTICKS          0xFFFF
  1559.  
  1560.    /**********************************************************************/
  1561.    /* Ownerdraw flag definitions                                         */
  1562.    /**********************************************************************/
  1563.    #define SDA_RIBBONSTRIP          0x0001
  1564.    #define SDA_SLIDERSHAFT          0x0002
  1565.    #define SDA_BACKGROUND           0x0003
  1566.    #define SDA_SLIDERARM            0x0004
  1567.  
  1568.    /**********************************************************************/
  1569.    /* Error return codes                                                 */
  1570.    /**********************************************************************/
  1571.    #define PMERR_UPDATE_IN_PROGRESS        0x1f06
  1572.    #define SLDERR_INVALID_PARAMETERS     -1
  1573.  
  1574. #endif /* !INCL_WINSTDSLIDER_INCLUDED && INCL_WINSTDSLIDER */
  1575.  
  1576.  
  1577. #if !(defined (INCL_WINSTDVALSET_INCLUDED) || !defined (INCL_WINSTDVALSET))
  1578.    #define INCL_WINSTDVALSET_INCLUDED
  1579.    /**********************************************************************/
  1580.    /*                                                                    */
  1581.    /*                         V A L U E   S E T                          */
  1582.    /*                                                                    */
  1583.    /**********************************************************************/
  1584.  
  1585.    /**********************************************************************/
  1586.    /* Define messages for the value set control                          */
  1587.    /**********************************************************************/
  1588.    #define VM_QUERYITEM           0x0375    /* Query item at location    */
  1589.    #define VM_QUERYITEMATTR       0x0376    /* Query item attributes     */
  1590.    #define VM_QUERYMETRICS        0x0377    /* Query metrics of control  */
  1591.    #define VM_QUERYSELECTEDITEM   0x0378    /* Query selected item       */
  1592.    #define VM_SELECTITEM          0x0379    /* Set selected item         */
  1593.    #define VM_SETITEM             0x037a    /* Set item at location      */
  1594.    #define VM_SETITEMATTR         0x037b    /* Set item attributes       */
  1595.    #define VM_SETMETRICS          0x037c    /* Set metrics of control    */
  1596.  
  1597.    #define VN_SELECT              120       /* Item selected by user     */
  1598.    #define VN_ENTER               121       /* Item entered by user      */
  1599.    #define VN_DRAGLEAVE           122       /* Drag left control         */
  1600.    #define VN_DRAGOVER            123       /* Drag is over item         */
  1601.    #define VN_DROP                124       /* Drop occurred on item     */
  1602.    #define VN_DROPHELP            125       /* Request help for drop     */
  1603.    #define VN_INITDRAG            126       /* Drag initiated on item    */
  1604.    #define VN_SETFOCUS            127       /* Value set gaining focus   */
  1605.    #define VN_KILLFOCUS           128       /* Value set losing focus    */
  1606.    #define VN_HELP                129       /* Help requested by user    */
  1607.  
  1608.    /**********************************************************************/
  1609.    /* Value set control data structure                                   */
  1610.    /**********************************************************************/
  1611.    typedef struct _VSCDATA {   /* vscd */
  1612.       ULONG   cbSize;                /* Size of control block             */
  1613.       USHORT  usRowCount;            /* Number of rows in value set       */
  1614.       USHORT  usColumnCount;         /* Number of columns in value set    */
  1615.    } VSCDATA;
  1616.    typedef VSCDATA FAR *PVSCDATA;
  1617.  
  1618.    /**********************************************************************/
  1619.    /* Value set drag initialization structure                            */
  1620.    /**********************************************************************/
  1621.    typedef struct _VSDRAGINIT {   /* vsdinit */
  1622.       HWND    hwnd;                  /* Window handle of value set control*/
  1623.       LONG    x;                     /* X coordinate of pointer on desktop*/
  1624.       LONG    y;                     /* Y coordinate of pointer on desktop*/
  1625.       LONG    cx;                    /* X offset from pointer hot spot    */
  1626.       LONG    cy;                    /* Y offset from pointer hot spot    */
  1627.       USHORT  usRow;                 /* Number of rows in value set       */
  1628.       USHORT  usColumn;              /* Number of columns in value set    */
  1629.    } VSDRAGINIT;
  1630.    typedef VSDRAGINIT FAR *PVSDRAGINIT;
  1631.  
  1632.    #ifdef INCL_WINSTDDRAG
  1633.       /*******************************************************************/
  1634.       /* Value set drag information structure                            */
  1635.       /*******************************************************************/
  1636.       typedef struct _VSDRAGINFO {   /* vsdinfo */
  1637.          PDRAGINFO pDragInfo;         /* Pointer to a drag info structure */
  1638.          USHORT    usRow;             /* Number of rows in value set      */
  1639.          USHORT    usColumn;          /* Number of columns in value set   */
  1640.       } VSDRAGINFO;
  1641.       typedef VSDRAGINFO FAR *PVSDRAGINFO;
  1642.    #endif
  1643.  
  1644.    /**********************************************************************/
  1645.    /* Value set query item text structure                                */
  1646.    /**********************************************************************/
  1647.    typedef struct _VSTEXT {   /* vstext */
  1648.       PSZ       pszItemText;      /* Pointer to string for item text      */
  1649.       ULONG     ulBufLen;         /* Length of buffer to copy string into */
  1650.    } VSTEXT;
  1651.    typedef VSTEXT FAR *PVSTEXT;
  1652.  
  1653.    /**********************************************************************/
  1654.    /* Value set control style flag definition                            */
  1655.    /**********************************************************************/
  1656.    #define VS_BITMAP       0x0001   /* Default all items to bitmaps      */
  1657.    #define VS_ICON         0x0002   /* Default all items to icons        */
  1658.    #define VS_TEXT         0x0004   /* Default all items to text strings */
  1659.    #define VS_RGB          0x0008   /* Default all items to color info   */
  1660.    #define VS_COLORINDEX   0x0010   /* Default all items to color indices*/
  1661.    #define VS_BORDER       0x0020   /* Add a border around the control   */
  1662.    #define VS_ITEMBORDER   0x0040   /* Add a border around each item     */
  1663.    #define VS_SCALEBITMAPS 0x0080   /* Scale bitmaps to cell size        */
  1664.    #define VS_RIGHTTOLEFT  0x0100   /* Support right to left ordering    */
  1665.    #define VS_OWNERDRAW    0x0200   /* Owner draws value set background  */
  1666.  
  1667.    /**********************************************************************/
  1668.    /* Value set item attribute definition                                */
  1669.    /**********************************************************************/
  1670.    #define VIA_BITMAP       0x0001  /* If set, item contains a bitmap    */
  1671.    #define VIA_ICON         0x0002  /* If set, item contains an icon     */
  1672.    #define VIA_TEXT         0x0004  /* If set, item contains text string */
  1673.    #define VIA_RGB          0x0008  /* If set, item contains color value */
  1674.    #define VIA_COLORINDEX   0x0010  /* If set, item contains color index */
  1675.    #define VIA_OWNERDRAW    0x0020  /* If set, item is ownerdraw         */
  1676.    #define VIA_DISABLED     0x0040  /* If set, item is unselectable      */
  1677.    #define VIA_DRAGGABLE    0x0080  /* If set, item can be source of drag*/
  1678.    #define VIA_DROPONABLE   0x0100  /* If set, item can be target of drop*/
  1679.  
  1680.    /**********************************************************************/
  1681.    /* Message parameter attributes for sizing and spacing of items       */
  1682.    /**********************************************************************/
  1683.    #define VMA_ITEMSIZE             0x0001
  1684.    #define VMA_ITEMSPACING          0x0002
  1685.  
  1686.    /**********************************************************************/
  1687.    /* Ownerdraw flag definitions                                         */
  1688.    /**********************************************************************/
  1689.    #define VDA_ITEM                 0x0001
  1690.    #define VDA_ITEMBACKGROUND       0x0002
  1691.    #define VDA_SURROUNDING          0x0003
  1692.    #define VDA_BACKGROUND           0x0004
  1693.  
  1694.    /**********************************************************************/
  1695.    /* Error return codes                                                 */
  1696.    /**********************************************************************/
  1697.    #define VSERR_INVALID_PARAMETERS     -1
  1698.  
  1699. #endif /* !INCL_WINSTDVALSET_INCLUDED && INCL_WINSTDVALSET */
  1700.  
  1701.  
  1702. #if !(defined (INCL_WINSTDBOOK_INCLUDED) || !defined (INCL_WINSTDBOOK))
  1703.    #define INCL_WINSTDBOOK_INCLUDED
  1704.    /**********************************************************************/
  1705.    /*                                                                    */
  1706.    /*                          N O T E B O O K                           */
  1707.    /*                                                                    */
  1708.    /**********************************************************************/
  1709.  
  1710.    /**********************************************************************/
  1711.    /* Message ids                                                        */
  1712.    /**********************************************************************/
  1713.    #define BKM_CALCPAGERECT         0x0353  /* Calc book/page rectangle  */
  1714.    #define BKM_DELETEPAGE           0x0354  /* Delete page(s)            */
  1715.    #define BKM_INSERTPAGE           0x0355  /* Insert page               */
  1716.    #define BKM_INVALIDATETABS       0x0356  /* Invalidate tab area       */
  1717.    #define BKM_TURNTOPAGE           0x0357  /* Turn to page              */
  1718.    #define BKM_QUERYPAGECOUNT       0x0358  /* Query number of pages     */
  1719.    #define BKM_QUERYPAGEID          0x0359  /* Query page identifier     */
  1720.    #define BKM_QUERYPAGEDATA        0x035a  /* Query page user data      */
  1721.    #define BKM_QUERYPAGEWINDOWHWND  0x035b  /* Query page window handle  */
  1722.    #define BKM_QUERYTABBITMAP       0x035c  /* Query tab bitmap handle   */
  1723.    #define BKM_QUERYTABTEXT         0x035d  /* Query tab text pointer    */
  1724.    #define BKM_SETDIMENSIONS        0x035e  /* Set tab/dogear dimensions */
  1725.    #define BKM_SETPAGEDATA          0x035f  /* Set page user data        */
  1726.    #define BKM_SETPAGEWINDOWHWND    0x0360  /* Set page window handle    */
  1727.    #define BKM_SETSTATUSLINETEXT    0x0361  /* Set status line text      */
  1728.    #define BKM_SETTABBITMAP         0x0362  /* Set tab bitmap            */
  1729.    #define BKM_SETTABTEXT           0x0363  /* Set tab text              */
  1730.    #define BKM_SETNOTEBOOKCOLORS    0x0364  /* Set Notebook colors       */
  1731.    #define BKM_QUERYPAGESTYLE       0x0365  /* Query page style          */
  1732.    #define BKM_QUERYSTATUSLINETEXT  0x0366  /* Query status line text    */
  1733.  
  1734.    #define BKN_PAGESELECTED         130     /* New page selected by user */
  1735.    #define BKN_NEWPAGESIZE          131     /* App page size changed     */
  1736.    #define BKN_HELP                 132     /* Help notification         */
  1737.    #define BKN_PAGEDELETED          133     /* Page deleted notification */
  1738.  
  1739.    /**********************************************************************/
  1740.    /* Page deletion flags (usDeleteFlag)                                 */
  1741.    /**********************************************************************/
  1742.    #define BKA_ALL                  0x0001  /* all pages                 */
  1743.    #define BKA_SINGLE               0x0002  /* single page               */
  1744.    #define BKA_TAB                  0x0004  /* minor/major section       */
  1745.  
  1746.    /**********************************************************************/
  1747.    /* Page insertion/query order (usPageOrder, usQueryOrder)             */
  1748.    /**********************************************************************/
  1749.    #define BKA_LAST                 0x0002  /* Insert/Query last page    */
  1750.    #define BKA_FIRST                0x0004  /* Insert/Query first page   */
  1751.    #define BKA_NEXT                 0x0008  /* Insert/Query after page   */
  1752.    #define BKA_PREV                 0x0010  /* Insert/Query before page  */
  1753.    #define BKA_TOP                  0x0020  /* Query topmost page        */
  1754.  
  1755.    /**********************************************************************/
  1756.    /* Notebook region types (usBookRegion, usType)                       */
  1757.    /**********************************************************************/
  1758.    #define BKA_MAJORTAB             0x0001  /* Major Tab                 */
  1759.    #define BKA_MINORTAB             0x0002  /* Minor Tab                 */
  1760.    #define BKA_PAGEBUTTON           0x0100  /* Page Turning Button       */
  1761.  
  1762.    /**********************************************************************/
  1763.    /* Page insertion/query styles (usPageStyle,usQueryEnd)               */
  1764.    /**********************************************************************/
  1765.    #define BKA_STATUSTEXTON         0x0001  /* status area text          */
  1766.    #define BKA_MAJOR                0x0040  /* Major Tab                 */
  1767.    #define BKA_MINOR                0x0080  /* Minor Tab                 */
  1768.    #define BKA_AUTOPAGESIZE         0x0100  /* Page window position/size */
  1769.    #define BKA_END                  0x0200  /* Query to end of book      */
  1770.  
  1771.    /**********************************************************************/
  1772.    /* Tab window contents (usTabDisplay)                                 */
  1773.    /**********************************************************************/
  1774.    #define BKA_TEXT                 0x0400  /* text data                 */
  1775.    #define BKA_BITMAP               0x0800  /* bitmap                    */
  1776.  
  1777.    /**********************************************************************/
  1778.    /* Notebook window styles (ulNotebookStyles)                          */
  1779.    /**********************************************************************/
  1780.  
  1781.    /**********************************************************************/
  1782.    /* Backpage Orientation                                               */
  1783.    /**********************************************************************/
  1784.    #define BKS_BACKPAGESBR          0x00000001  /* Bottom right          */
  1785.    #define BKS_BACKPAGESBL          0x00000002  /* Bottom left           */
  1786.    #define BKS_BACKPAGESTR          0x00000004  /* Top right             */
  1787.    #define BKS_BACKPAGESTL          0x00000008  /* Top left              */
  1788.  
  1789.    /**********************************************************************/
  1790.    /* Major Tab Side                                                     */
  1791.    /**********************************************************************/
  1792.    #define BKS_MAJORTABRIGHT        0x00000010  /* Major tabs right      */
  1793.    #define BKS_MAJORTABLEFT         0x00000020  /* Major tabs left       */
  1794.    #define BKS_MAJORTABTOP          0x00000040  /* Major tabs top        */
  1795.    #define BKS_MAJORTABBOTTOM       0x00000080  /* Major tabs bottom     */
  1796.  
  1797.    /**********************************************************************/
  1798.    /* Tab Type                                                           */
  1799.    /**********************************************************************/
  1800.    #define BKS_SQUARETABS           0x00000000  /* Square edged tabs     */
  1801.    #define BKS_ROUNDEDTABS          0x00000100  /* Round edged tabs      */
  1802.    #define BKS_POLYGONTABS          0x00000200  /* Polygon edged tabs    */
  1803.  
  1804.    /**********************************************************************/
  1805.    /* Binding type                                                       */
  1806.    /**********************************************************************/
  1807.    #define BKS_SOLIDBIND            0x00000000  /* Solid binding         */
  1808.    #define BKS_SPIRALBIND           0x00000400  /* Spiral binding        */
  1809.  
  1810.    /**********************************************************************/
  1811.    /* Status line text justification                                     */
  1812.    /**********************************************************************/
  1813.    #define BKS_STATUSTEXTLEFT       0x00000000  /* Left justify text     */
  1814.    #define BKS_STATUSTEXTRIGHT      0x00001000  /* Right justify text    */
  1815.    #define BKS_STATUSTEXTCENTER     0x00002000  /* Center text           */
  1816.  
  1817.    /**********************************************************************/
  1818.    /* Tab text justification                                             */
  1819.    /**********************************************************************/
  1820.    #define BKS_TABTEXTLEFT          0x00000000  /* Left justify tab text */
  1821.    #define BKS_TABTEXTRIGHT         0x00004000  /* Right justify tab text*/
  1822.    #define BKS_TABTEXTCENTER        0x00008000  /* Center tab text       */
  1823.  
  1824.    /**********************************************************************/
  1825.    /* Notebook color presentation param attributes                       */
  1826.    /**********************************************************************/
  1827.    #define BKA_BACKGROUNDPAGECOLORINDEX  0x0001 /* Page Background       */
  1828.    #define BKA_BACKGROUNDPAGECOLOR       0x0002
  1829.    #define BKA_BACKGROUNDMAJORCOLORINDEX 0x0003 /* Major Tab Background  */
  1830.    #define BKA_BACKGROUNDMAJORCOLOR      0x0004
  1831.    #define BKA_BACKGROUNDMINORCOLORINDEX 0x0005 /* Minor Tab Background  */
  1832.    #define BKA_BACKGROUNDMINORCOLOR      0x0006
  1833.    #define BKA_FOREGROUNDMAJORCOLORINDEX 0x0007 /* Major Tab Text        */
  1834.    #define BKA_FOREGROUNDMAJORCOLOR      0x0008
  1835.    #define BKA_FOREGROUNDMINORCOLORINDEX 0x0009 /* Minor Tab Text        */
  1836.    #define BKA_FOREGROUNDMINORCOLOR      0x000A
  1837.  
  1838.    /**********************************************************************/
  1839.    /* Error message ids                                                  */
  1840.    /**********************************************************************/
  1841.    #define BOOKERR_INVALID_PARAMETERS   -1L /* Invalid parameters        */
  1842.  
  1843.    /**********************************************************************/
  1844.    /* BKM_QUERYTABTEXT and BKM_QUERYSTATUSLINETEXT message structure     */
  1845.    /**********************************************************************/
  1846.    typedef struct _BOOKTEXT {   /* booktxt */
  1847.       PSZ    pString;                        /* ptr to string buffer      */
  1848.       ULONG  textLen;                        /* length of string to query */
  1849.    } BOOKTEXT;
  1850.    typedef BOOKTEXT FAR *PBOOKTEXT;
  1851.  
  1852.    /**********************************************************************/
  1853.    /* BKN_PAGEDELETED notify message structure                           */
  1854.    /**********************************************************************/
  1855.    typedef struct _DELETENOTIFY {   /* delntfy */
  1856.       HWND    hwndBook;                      /* Notebook window handle    */
  1857.       HWND    hwndPage;                      /* App. page window handle   */
  1858.       ULONG   ulAppPageData;                 /* App. page data            */
  1859.       HBITMAP hbmTab;                        /* App. tab bitmap handle    */
  1860.    } DELETENOTIFY;
  1861.    typedef DELETENOTIFY FAR *PDELETENOTIFY;
  1862.  
  1863.    /**********************************************************************/
  1864.    /* BKN_PAGESELECTED notify message structure                          */
  1865.    /**********************************************************************/
  1866.    typedef struct _PAGESELECTNOTIFY {   /* pgsntfy */
  1867.       HWND    hwndBook;                      /* Notebook window handle    */
  1868.       ULONG   ulPageIdCur;                   /* Previous top page id      */
  1869.       ULONG   ulPageIdNew;                   /* New top Page id           */
  1870.    } PAGESELECTNOTIFY;
  1871.    typedef PAGESELECTNOTIFY FAR *PPAGESELECTNOTIFY;
  1872.  
  1873. #endif /* !INCL_WINSTDBOOK_INCLUDED && INCL_WINSTDBOOK */
  1874.  
  1875. #ifdef __IBMC__
  1876.    #pragma checkout( suspend )
  1877.       #ifndef __CHKHDR__
  1878.          #pragma checkout( resume )
  1879.       #endif
  1880.    #pragma checkout( resume )
  1881. #endif
  1882.  
  1883. /**************************** end of file **********************************/
  1884.