home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / FWWinRes.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  93 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWWinRes.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWWINRES_H
  11. #define FWWINRES_H
  12.  
  13. #ifdef FW_BUILD_WIN
  14.  
  15. #include <windows.h>
  16.  
  17. #endif
  18.  
  19. #ifdef FW_BUILD_MAC
  20.  
  21. #pragma options align=mac68k
  22.  
  23. // Windows resource structures taken from WINDOWS.H
  24.  
  25. #define FW_kWinBitmapSignature    0x4D42    
  26.  
  27. struct BITMAPFILEHEADER
  28. {
  29.     unsigned short    bfType;
  30.     unsigned long    bfSize;
  31.     unsigned short    bfReserved1;
  32.     unsigned short    bfReserved2;
  33.     unsigned long    bfOffBits;
  34. };
  35.  
  36. struct BITMAPINFOHEADER
  37. {
  38.     unsigned long    biSize;
  39.     unsigned long    biWidth;
  40.     unsigned long    biHeight;
  41.     unsigned short    biPlanes;
  42.     unsigned short    biBitCount;
  43.  
  44.     unsigned long    biCompression;
  45.     unsigned long    biSizeImage;
  46.     unsigned long    biXPelsPerMeter;
  47.     unsigned long    biYPelsPerMeter;
  48.     unsigned long    biClrUsed;
  49.     unsigned long    biClrImportant;
  50. };
  51.  
  52. struct BITMAPCOREHEADER
  53. {
  54.     unsigned long    bcSize;       // used to get to color table
  55.     unsigned short    bcWidth;
  56.     unsigned short    bcHeight;
  57.     unsigned short    bcPlanes;
  58.     unsigned short    bcBitCount;
  59. };
  60.  
  61. struct RGBTRIPLE
  62. {
  63.     unsigned char    rgbtBlue;
  64.     unsigned char    rgbtGreen;
  65.     unsigned char    rgbtRed;
  66. };
  67.  
  68. struct BITMAPCOREINFO
  69. {
  70.     BITMAPCOREHEADER    bmciHeader;
  71.     RGBTRIPLE            bmciColors[1];
  72. };
  73.  
  74. struct RGBQUAD
  75. {
  76.     unsigned char    rgbBlue;
  77.     unsigned char    rgbGreen;
  78.     unsigned char    rgbRed;
  79.     unsigned char    rgbReserved;
  80. };
  81.  
  82. struct BITMAPINFO
  83. {
  84.     BITMAPINFOHEADER    bmiHeader;
  85.     RGBQUAD                bmiColors[1];
  86. };
  87.  
  88. #pragma options align=reset
  89.  
  90. #endif
  91.  
  92. #endif // FWWINRES_H
  93.