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