home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / WBITMAP.ZIP / BITMAPS.H < prev    next >
C/C++ Source or Header  |  1991-11-12  |  2KB  |  70 lines

  1. /*
  2. **    $id: ssvcid bitmaps.h 1.1 11/12/91  8:38 am$
  3. **        This file contains the functino prototypes, global variable defines,
  4. **    and constant defines used by the Bitmap and Icon deom program.
  5. **
  6. **    (C) 1991 Larry Widing
  7. */
  8. #ifndef    __BITMAPS_H__
  9. #define CLRD_RGBLIST    101
  10. #define    __BITMAPS_H__    1
  11.  
  12. /*
  13. **    Menu Item Defines
  14. */
  15. #define    IDM_FILE_OPENBITMAP    101
  16. #define    IDM_FILE_OPENICON        102
  17. #define    IDM_FILE_SAVEBITMAP    103
  18. #define    IDM_FILE_PRINT            104
  19. #define    IDM_FILE_PRSETUP        105
  20. #define    IDM_FILE_EXIT            106
  21. #define    IDM_FILE_ABOUT            107
  22. #define    IDM_FILE_FMT_DIB        111
  23. #define    IDM_FILE_FMT_RLE        112
  24. #define    IDM_FILE_FMT_OS2        113
  25. #define    IDM_EDIT_COPY            121
  26. #define    IDM_EDIT_PASTE            122
  27. #define    IDM_INFO_ABOUT            131
  28. #define    IDM_CONVERT_LOGICAL    141
  29. #define    IDM_CONVERT_DIB        142
  30. #define    IDM_CONVERT_RLE        143
  31. #define    IDM_CONVERT_OS2        144
  32.  
  33. /*
  34. **    Dialog Item IDs
  35. */
  36. #define    IDD_FILENAME            101
  37.  
  38. #ifndef    RC_INVOKED
  39. /*
  40. **    Function prototypes
  41. */
  42. extern void ErrorBox(char *msg);
  43.  
  44. /*
  45. **    Global Variables
  46. */
  47. extern HWND        MainWindow;            /* Handle to the application's main window */
  48. extern HANDLE    AppInstance;        /* Handle to application's instance */
  49. extern char        FileName[128];        /* Name of file returned by open file dialog */
  50. extern HBITMAP    BitmapHandle;        /* Handle of currently loaded bitmap */
  51. extern HICON    IconHandle;            /* Handle of currently loaded icon */
  52. extern HANDLE    DIBitmapHandle;    /* Handle of packed DI Bitmap */
  53.  
  54. #ifndef    HUGE
  55. #define    HUGE    huge
  56. #endif
  57. #endif
  58.  
  59. #endif    /* !defined(__BITMAPS_H__) */
  60.  
  61. /*
  62. **    Modification History
  63. **    --------------------
  64. **    $lgb$
  65. ** 10/15/91     Larry Widing   Initial version for Win Tech Journal Article.
  66. ** 11/12/91     Larry Widing   Added defines for print menu options and
  67. **                             conversion menu.
  68. **    $lge$
  69. */
  70.