home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_tools / manythng / bitmaps.h next >
C/C++ Source or Header  |  1994-07-29  |  3KB  |  106 lines

  1. /*
  2. **    $id: ssvcid bitmaps.h 1.3 08/03/92 10:01 am$
  3. **        This file contains the function prototypes, global variable defines,
  4. **    and constant defines used by the Bitmap and Icon deom program.
  5. **
  6. **    (C) 1991-3 Larry Widing
  7. */
  8. #ifndef    __BITMAPS_H__
  9. #define    __BITMAPS_H__    1
  10.  
  11. /*
  12. **    Menu Item Defines
  13. */
  14. #define    IDM_FILE_OPEN            101
  15. #define    IDM_FILE_SAVE            104
  16. #define    IDM_FILE_PRINT            105
  17. #define    IDM_FILE_PRSETUP        106
  18. #define    IDM_FILE_EXIT            107
  19. #define    IDM_FILE_ABOUT            108
  20. #define    IDM_FILE_FMT_DIB        111
  21. #define    IDM_FILE_FMT_RLE        112
  22. #define    IDM_FILE_FMT_OS2        113
  23. #define    IDM_EDIT_COPY            121
  24. #define    IDM_EDIT_PASTE            122
  25. #define    IDM_INFO_ABOUT            131
  26. #define    IDM_CONVERT_LOGICAL    141
  27. #define    IDM_CONVERT_DIB        142
  28. #define    IDM_CONVERT_RLE        143
  29. #define    IDM_CONVERT_OS2        144
  30. #define    IDM_CONVERT_COLORMAP    145
  31.  
  32. /*
  33. **    Dialog Item IDs
  34. */
  35. #define    IDD_FILENAME            101
  36. #define    IDD_FILELIST            102
  37. #define    IDD_DIRECTORY            103
  38.  
  39. /*
  40. **    String table resource IDs
  41. */
  42. #define    IDS_MAIN_TITLE            1
  43. #define    IDS_ERROR_TITLE        2
  44. #define    IDS_ERROR_OPENWNDW    3
  45. #define    IDS_ERROR_REGWNDW        4
  46. #define    IDS_OPEN_FILTER        20
  47. #define    IDS_SAVEAS_FILTER        21
  48.  
  49. #ifndef    RC_INVOKED
  50. /*
  51. **    Macros
  52. */
  53. #define    NULLWND    ((HWND)NULL)
  54.  
  55. /*
  56. **    Types
  57. */
  58.  
  59. typedef    HANDLE    HDIB;        /* Handle to a DIB */
  60.  
  61. #if    !defined(__TSC__)
  62. #define    EXPORT    _export
  63. #else
  64. #define    EXPORT
  65. #endif
  66.  
  67. /*
  68. **    Function prototypes
  69. */
  70. extern void ClearHandles(void);
  71. extern void ErrorBox(char *msg);
  72.  
  73. /*
  74. **    Global Variables
  75. */
  76. extern HWND            MainWindow;            /* Handle to the application's main window */
  77. extern HANDLE        AppInstance;        /* Handle to application's instance */
  78. extern char            FileName[256];        /* Name of file returned by open file dialog */
  79. extern HBITMAP        BitmapHandle;        /* Handle of currently loaded bitmap */
  80. extern HICON        IconHandle;            /* Handle of currently loaded icon */
  81. extern HDIB            DIBitmapHandle;    /* Handle of packed DI Bitmap */
  82. extern HPALETTE    DibPalette;            /* Handle to palette for DI Bitmap */
  83. extern HBRUSH        DialogBrush;        /* background brush for dialogs */
  84. extern HBRUSH        GrayBrush;            /* gray brush for control backgrounds */
  85.  
  86. #ifndef    HUGE
  87. #define    HUGE    huge
  88. #endif
  89. #endif
  90.  
  91. #endif    /* !defined(__BITMAPS_H__) */
  92.  
  93. /*
  94. **    Modification History
  95. **    --------------------
  96. **    $lgb$
  97. ** 10/15/91     Larry Widing   Initial version for Win Tech Journal Article.
  98. ** 11/12/91     Larry Widing   Added defines for print menu options and
  99. **                             conversion menu.
  100. ** 02/10/92     Larry Widing   Added hooks to alter the colormap.  Added HDIB
  101. **                             typdef.  Added hooks for reading compressed RIX
  102. **                             images.
  103. ** 08/03/92     Larry Widing   
  104. **    $lge$
  105. */
  106.