home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v5.zip / TOOLKT21 / CPLUS / OS2H / PMSTDDLG.H < prev    next >
C/C++ Source or Header  |  1993-05-03  |  97KB  |  1,808 lines

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