home *** CD-ROM | disk | FTP | other *** search
/ PC Loisirs 18 / cd.iso / kit / mail / pmail.exe / forms / wpmprefs.h < prev   
Encoding:
C/C++ Source or Header  |  1995-04-17  |  7.2 KB  |  122 lines

  1. //
  2. //  WPMPREFS.H
  3. //  Definitions and constants for the Pegasus Mail for Windows
  4. //  Extensions Manager interface preferences management calls.
  5. //
  6. //  Copyright (c) 1994, David Harris, all rights reserved.
  7. //
  8. //  Use the equates in this file to indicate to the extensions manager
  9. //  which value you want to set or get in the user's preferences when you
  10. //  use the WM_F_SETPREF or WM_F_GETPREF messages. In the list below is a
  11. //  brief description of each field, and a description of the type of the
  12. //  item using the following legend:
  13. //
  14. //     char * [x]    --  A C string which can be at most X chars long
  15. //     B             --  A boolean value, where 1 = TRUE and 0 = FALSE.
  16. //     x..x          --  A range of possible integer values
  17. //     Integer       --  A signed 16-bit value
  18. //     RECT *        --  A pointer to a Windows RECT structure
  19. //     POINT *       --  A pointer to a Windows POINT structure
  20. //     FONTDEF *     --  A Pointer to a FONTDEF structure (see below)
  21. //
  22. //  When calling WM_F_GETPREF, the function will return the value for
  23. //  scalar types (Integer, boolean, long). For non-scalar types you
  24. //  must pass a pointer to a structure of the proper size in the lParam
  25. //  parameter to the message.
  26. //
  27. //  When calling WM_F_SETPREF, you should pass scalar types in the
  28. //  lParam parameter, and pointers to all other types as lParam.
  29. //
  30. //  *** WARNING!!! ***
  31. //  The onus is on you to ensure that you pass pointers to items of the
  32. //  correct size, since WinPMail will not (cannot) check them in most
  33. //  cases.
  34. //
  35.  
  36. typedef struct
  37.    {
  38.    char fontname [32];     // LF_FACESIZE
  39.    int fontsize, style;
  40.    } FONTDEF;
  41.  
  42. enum
  43.    {                        // -- Description -------------------- Type ------
  44.    W_PRO_PERSONAL_NAME,     // User's Personal name setting        char * [46]
  45.    W_PRO_DEFRMARGIN,        // Editor default right margin         1..256
  46.    W_PRO_HOMEBOX,           // Home mailbox location               char * [46]
  47.    W_PRO_COPYSELF,          // Copy self saved value               B
  48.    W_PRO_SELFFOLDER,        // Copy-to-self folder (name only)     char * [14]
  49.    W_PRO_COMMENT_WITH,      // Commenting string                   char * [14]
  50.    W_PRO_COLLATION,         // Sort order for folders              B
  51.    W_PRO_DEFAULT_REPLY = 9, // Default reply-to address            char * [46]
  52.    W_PRO_REPLY,             // Default reply dialog settings       char * [9]
  53.    W_PRO_EDIT_FORWARD,      // Edit before forwarding value        B
  54.    W_PRO_MHS_NAME,          // MHS name-8 for this user            char * [30]
  55.    W_PRO_RQC,               // Confirm reading saved value         B
  56.    W_PRO_WORKDIR,           // Working (temporary) directory       char * [46]
  57.    W_PRO_MHS_APP_DIR,       // User's preferred MHS application    char * [13]
  58.    W_PRO_SCAN_MHS_DIR,      // Scan the "MHS" app. for newmail     B
  59.    W_PRO_OPEN_NEW,          // Open newmail folder at startup      B
  60.    W_PRO_SAVE_DELETED,      // Saved deleted mail until exit       B
  61.    W_PRO_PROMPT_COPYSELF,   // Prompt for copy-to-self             B
  62.    W_PRO_PROMPT_CSFOLDER,   // Prompt for copy-to-self folder      B
  63.    W_PRO_LEAVE_NEW,         // Leave read mail in newmail folder   B
  64.    W_PRO_ASORT,             // Address book sort setting           0, 1
  65.    W_PRO_NEED_PASSWORD,     // Require NetWare passwd at startup   B
  66.    W_PRO_SMF_NAME,          // User's MHS SMF-71 address           char * [128]
  67.    W_PRO_USE_MIME,          // Whether or not to use MIME          B
  68.    W_PRO_CHARSET,           // default MIME character set          char * [20]
  69.    W_PRO_USE_PGP = 29,      // Not currently used                  B
  70.    W_PRO_ENCRYPT_CS,        // Encrypt copyselfs of encrypted mail B
  71.    W_PRO_NO_CONFIRM_DEL,    // Don't confirm deletions             B
  72.    W_PRO_BULKMAIL,          // Prefer enclosures over attachments  B
  73.    W_PRO_NB_COLLATION,      // Noticeboard sort order              0..4
  74.    W_PRO_ATTACH_SCAN_LINES, // # lines to scan for attachments     Integer
  75.    W_PRO_BPANELV,           // Button panel mode                   0, 1, 2
  76.    W_PRO_BP_CLOSED,         // Button panel open state             B
  77.    W_PRO_BP_RECT,           // Button panel position               RECT *
  78.    W_PRO_NEWMAIL_RECT,      // Newmail folder position             RECT *
  79.    W_PRO_NOSIG,             // Suppress message signatures         B
  80.    W_PRO_DELIVERY,          // Request confirmation of delivery    B
  81.    W_PRO_FRAME_MAX,         // Frame window is maximized at start  B
  82.    W_PRO_FRAME_RECT,        // Frame window size                   RECT *
  83.    W_PRO_ED_WH,             // Editor window height/width          POINT *
  84.    W_PRO_RD_WH,             // Reader window height/width          POINT *
  85.    W_PRO_READERFONT,        // Reader font definition              FONTDEF *
  86.    W_PRO_EDMAILFONT,        // Editor font definition              FONTDEF *
  87.    W_PRO_FOLDERFONT,        // Folder font definition              FONTDEF *
  88.    W_PRO_PRINTERFONT,       // Printer font definition             FONTDEF *
  89.    W_PRO_ADVANCED_REPLY,    // If NZ, use advanced reply dialog    B
  90.    W_PRO_TBMARGIN,          // Printer top/bottom margin           Integer
  91.    W_PRO_LRMARGIN,          // Printer left/right margin           Integer
  92.    W_PRO_UL_RECT,           // Userlist window position            RECT *
  93.    W_PRO_REFORMAT,          // Not currently used
  94.    W_PRO_PR_DEVICE,         // Printer device                      char * [50]
  95.    W_PRO_PR_DRIVER,         // Printer driver name                 char * [20]
  96.    W_PRO_PR_PORT,           // Printer port                        char * [20]
  97.    W_PRO_TABWIDTH,          // Tab width in editor                 Integer
  98.    W_PRO_LL_RECT,           // Logged-in userlist position         RECT *
  99.    W_PRO_SAVE_DESKTOP,      // Save desktop between sessions?      B
  100.    W_PRO_WORDWRAP,          // Wrap long lines in Reader?          B
  101.    W_PRO_POPOPTS,           // POP3 options - do not alter
  102.    W_PRO_NO_TCP,            // If NZ, disable WINSOCK loading      B
  103.    W_PRO_IDLE_CHECKS,       // Frequency of POP3 newmail checks    Integer secs
  104.    W_PRO_NEWMAIL_CHECKS,    // Frequency of local newmail checks   Integer secs
  105.    W_PRO_ORGANIZATION,      // Secondary organization name         char * [45]
  106.    W_PRO_TIMEZONE,          // Secondary time zone setting         char * [6]
  107.    W_PRO_NO_REQ_CONFIRM,    // Allow confirm reading (standalone)  B
  108.    W_PRO_NFYMODE,           // Telltale window mode                0, 1, 2
  109.    W_PRO_NFYSETTINGS,       // Do not alter.
  110.    W_PRO_NFY_POS,           // Telltale window position            POINT *
  111.    W_PRO_DLM_RECT,          // Distribution list manager position  RECT *
  112.    W_PRO_NB_RECT,           // Noticeboard manager position        RECT *
  113.    W_PRO_HPRINT,            // Header printing settings            0, 1, 2, 3
  114.    W_PRO_XRECT,             // Extension manager position          RECT *
  115.    W_PRO_NEWMAIL_SOUND,     // Newmail sound file                  char * [80]
  116.    W_PRO_FOLMAN_RECT,       // Folder manager window position      RECT *
  117.    W_PRO_OMIT_HEADERS,      // Omit headers flag for replies       B
  118.    W_PRO_USE_CUSTOM_REPLY,  // Use/don't use custom reply format   B
  119.    W_PRO_CUSTOM_REPLY       // Format string for custom replies    char * [64]
  120.    };
  121.  
  122.