home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / PMSTDDLG.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  115KB  |  2,113 lines

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