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

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