home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / SAMPLES / DIBVIEW / OPTIONS.H_ / OPTIONS.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.9 KB  |  89 lines

  1. #ifndef OPTIONS_INCLUDED
  2. #define OPTIONS_INCLUDED
  3.  
  4.    // Defines for controls in dialog box.  Note the PLACEHOLDER_* defines.
  5.    //  These are so we can have a contigous string table with help for each
  6.    //  toggled state of check boxes.  See references to IDS_HELP_*.
  7.  
  8. #define GB_DISPLAY            100
  9. #define GB_PRINTER            101
  10. #define IDRB_STRETCHWINDOW    102
  11. #define PLACEHOLDER_NOSTRETCH 103   // Used for IDS_HELP_NORMALWINDOW
  12. #define IDRB_USEDIBS          104
  13. #define IDRB_USEDDBS          105
  14. #define IDRB_USESETDIBITS     106
  15. #define IDRB_BESTFIT          107
  16. #define IDRB_STRETCH          108
  17. #define IDRB_SCALE            109
  18. #define IDEF_XAXIS            110
  19. #define IDEF_YAXIS            111
  20. #define IDRB_USEBANDING       112
  21. #define PLACEHOLDER_NOBANDING 113
  22. #define IDRB_USE31APIS        114
  23. #define PLACEHOLDER_NO31APIS  115
  24. #define IDEF_HELP             116
  25. #define IDC_XLABEL            200
  26. #define IDC_YLABEL            201
  27.  
  28.  
  29.    // Defines for help string table.
  30.  
  31. #define IDS_HELP_STRETCHWINDOW PLACEHOLDER_NOSTRETCH
  32. #define IDS_HELP_NORMALWINDOW  IDRB_STRETCHWINDOW
  33. #define IDS_HELP_USEDIBS       IDRB_USEDIBS
  34. #define IDS_HELP_USEDDBS       IDRB_USEDDBS
  35. #define IDS_HELP_USESETDIBITS  IDRB_USESETDIBITS
  36. #define IDS_HELP_BESTFIT       IDRB_BESTFIT
  37. #define IDS_HELP_STRETCH       IDRB_STRETCH
  38. #define IDS_HELP_SCALE         IDRB_SCALE
  39. #define IDS_HELP_XAXIS         IDEF_XAXIS
  40. #define IDS_HELP_YAXIS         IDEF_YAXIS
  41. #define IDS_HELP_USEBANDING    PLACEHOLDER_NOBANDING
  42. #define IDS_HELP_NOBANDING     IDRB_USEBANDING
  43. #define IDS_HELP_USE31APIS     PLACEHOLDER_NO31APIS
  44. #define IDS_HELP_NO31APIS      IDRB_USE31APIS
  45.  
  46.  
  47.    // Other string table defines used by OPTIONS.C.
  48.  
  49. #define IDS_ERRXYSCALE         700
  50.  
  51.  
  52.    // Structure copied to/from dialog box.
  53.  
  54. typedef struct
  55.    {
  56.    BOOL bStretch;                         // True = stretch to window
  57.    BOOL bPrinterBand;                     // True = want to band DIB to printer.
  58.    BOOL bUse31PrintAPIs;                  // True = Use the 3.1 Printing API
  59.    WORD wDispOption;                      // See defines below
  60.    WORD wPrintOption;                     // See defines below
  61.    WORD wXScale;                          // X Scale Edit control value
  62.    WORD wYScale;                          // Y Scale Edit control value
  63.    } FAR *LPOPTIONSINFO, OPTIONSINFO;
  64.  
  65.  
  66.  
  67.    // Values used for wDispOption in OPTIONSINFO structure.
  68.  
  69. #define DISP_USE_DIBS         IDRB_USEDIBS
  70. #define DISP_USE_DDBS         IDRB_USEDDBS
  71. #define DISP_USE_SETDIBITS    IDRB_USESETDIBITS
  72.  
  73.  
  74.    // Values used for wPrintOption in OPTIONSINFO structure.
  75.  
  76. #define PRINT_BESTFIT         IDRB_BESTFIT         // Best proportional stretch fit
  77. #define PRINT_STRETCH         IDRB_STRETCH         // Stretch to fill page
  78. #define PRINT_SCALE           IDRB_SCALE           // Independent X/Y scaling
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86. void ShowOptions (HWND hWnd, LPOPTIONSINFO lpInfo);
  87.  
  88. #endif
  89.