home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / H / PMSTDDLG.H < prev    next >
C/C++ Source or Header  |  1995-08-30  |  112KB  |  2,103 lines

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