home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Jumpstart 1.1a / CD_ROM.BIN / develpmt / source / cropdib / cropdib.h < prev    next >
Text File  |  1992-11-11  |  2KB  |  44 lines

  1. /* CropDIB.h
  2.  */
  3.  
  4.  
  5. /* dialog boxes */
  6. #define ABOUTBOX                1
  7. #define CROPDIBBOX              2
  8.  
  9.  
  10. /* menu items */
  11. #define IDM_ABOUT               11
  12.  
  13.  
  14. /* CROPDIBBOX controls */
  15. #define ID_INPUTFILEEDIT        101     // input file or pattern
  16. #define ID_OUTPUTFILEEDIT       102     // output file or pattern
  17. #define ID_XEDIT                103     // x-coord of crop box
  18. #define ID_YEDIT                104     // y-coord of crop box
  19. #define ID_WEDIT                105     // width of crop box
  20. #define ID_HEDIT                106     // height of crop box
  21. #define ID_BRIGHTEDIT           107     // brighten by
  22. #define ID_STATUSTEXT           108     // status information
  23.  
  24.  
  25. /* macros */
  26. #define MB_ERROR        (MB_ICONEXCLAMATION | MB_OK)
  27. #define Error(hwnd, idsFmt)                                     \
  28.         ( ErrMsg(hwnd, (idsFmt)), FALSE )
  29. #define Error1(hwnd, idsFmt, arg1)                              \
  30.         ( ErrMsg(hwnd, (idsFmt), (arg1)), FALSE )
  31. #define Error2(hwnd, idsFmt, arg1, arg2)                        \
  32.         ( ErrMsg(hwnd, (idsFmt), (arg1), (arg2)), FALSE )
  33.  
  34.  
  35. /* strings */
  36. #define IDS_APPNAME             300     // CropDIB
  37. #define IDS_CANTOPENFILE        301     // Can't open file '%s'
  38. #define IDS_ERRORWRITING        302     // Error writing file '%s'
  39. #define IDS_ERRORREADING        303     // Error reading file '%s'
  40. #define IDS_OUTOFMEMORY         304     // Out of memory
  41. #define IDS_INTERNALERROR       305     // Internal error %d
  42. #define IDS_CANTLOADDIBDRV      306     // Cannot load DIB.DRV
  43. #define IDS_FORMATNOTSUPPORTED 307 // Can't work with a 24-bit DIB
  44.