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

  1. // DIBVIEW.H
  2. // Include all the headers needed for any file in the project.
  3. // All files will include dibview.h and this will facilitate using
  4. // pre-compiled headers (/YX)
  5.  
  6. #ifndef DIBVIEW_INCLUDED
  7. #define DIBVIEW_INCLUDED
  8.  
  9.  
  10.  
  11. // Some macros.
  12.  
  13. #define RECTWIDTH(lpRect)     ((lpRect)->right - (lpRect)->left)
  14. #define RECTHEIGHT(lpRect)    ((lpRect)->bottom - (lpRect)->top)
  15.  
  16. #define szMDIChild "MyDIBMDI"          // Class name of MDI children.
  17. #define DRAGCURSOR "DragCursor"        // Name of dragging cursor in .RC file.
  18.  
  19. #define SWAP(x,y)   ((x)^=(y)^=(x)^=(y))
  20.  
  21.  
  22. // Global variables.
  23.  
  24. extern HANDLE hInst;                   // Handle to this instance
  25. extern HWND   hWndMDIClient;           // MDI Client's window handle.
  26.  
  27.  
  28.  
  29. // String Defines
  30.  
  31. #define IDS_PROGNAME        0
  32. #define IDS_WINBMP          1
  33. #define IDS_PMBMP           2
  34. #define IDS_OPENDLG         3
  35. #define IDS_SAVEDLG         4
  36. #define IDS_FILEOPEN        5
  37. #define IDS_FILESAVE        6
  38. #define IDS_RGB             7
  39. #define IDS_PM              8
  40. #define IDS_RLE4            9
  41. #define IDS_RLE8           10
  42. #define IDS_1              11
  43. #define IDS_4              12
  44. #define IDS_8              13
  45. #define IDS_24             14
  46. #define IDS_PASTE          15
  47. #define IDS_CAPTURE        16       // Window title for captured window.
  48.  
  49.  
  50. //  Defines for File Save format combo box
  51.  
  52. #define ID_FS_BEGIN       IDS_PM
  53. #define ID_FS_END         IDS_24
  54.  
  55. // Menu Defines for main menu.
  56.  
  57. #define OPTION_MENU         3          // position of option menu
  58. #define WINDOW_MENU         5          // position of window menu
  59.  
  60.  
  61. #define IDM_OPEN            100        // Open a DIB
  62. #define IDM_SAVE            101        // Save a DIB
  63. #define IDM_PRINT           102        // Print a DIB
  64. #define IDM_EXIT            103        // Exit DibView
  65. #define IDM_ABOUT           104        // About Box
  66.  
  67. #define IDM_COPY            250        // Copy to clipboard
  68. #define IDM_PASTE           251        // Paste from clipboard
  69.  
  70. #define IDM_WINDOWTILE      300        // Tile MDI windows
  71. #define IDM_WINDOWCASCADE   301        // Cascade MDI windows
  72. #define IDM_WINDOWICONS     302        // Minimize all MDI windows
  73. #define IDM_WINDOWCLOSEALL  303        // Close all MDI windows
  74.  
  75. #define IDM_OPTIONS         350        // Stretch DIB to Window (or no stretch)
  76.  
  77. #define IDM_CAPTWINDOW      375        // Capture a Window
  78. #define IDM_CAPTCLIENT      376        // Capture client area
  79. #define IDM_CAPTFULLSCREEN  377        // Capture entire screen
  80. #define IDM_CAPTUREHIDE     379        // "Hide window"
  81.  
  82. #define IDM_PALDIB          400        // Show DIB's palette
  83. #define IDM_PALSYS          401        // Show the system's palette
  84. #define IDM_PALANIMATE      402        // Animate the DIB's palette
  85. #define IDM_PALRESTORE      403        // Restore the DIB's palette
  86.  
  87. #define IDM_WINDOWCHILD    4100        // Starting Child Windows here
  88.  
  89.  
  90.  
  91.  
  92.  
  93. // Function Prototypes
  94.  
  95. int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  96.  
  97. #endif  // DIBVIEW_INCLUDED
  98.