home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CVTICONS.ZIP / OS2DEFS.H < prev    next >
Text File  |  1991-06-29  |  1KB  |  47 lines

  1.  
  2. typedef struct _BITMAPINFOHEADER {      /* bmp */
  3.     DWORD  cbFix;
  4.     WORD   cx;
  5.     WORD   cy;
  6.     WORD   cPlanes;
  7.     WORD   cBitCount;
  8. } OS2_BITMAPINFOHEADER;
  9.  
  10. typedef struct _BITMAPFILEHEADER { /* bfh */
  11.     WORD      usType;
  12.     DWORD      cbSize;
  13.     short      xHotspot;
  14.     short      yHotspot;
  15.     DWORD      offBits;
  16.     OS2_BITMAPINFOHEADER bmp;
  17. } OS2_BITMAPFILEHEADER;
  18.  
  19.         /* This is the 1.2 device independent format header */
  20.  
  21. typedef struct _BITMAPARRAYFILEHEADER { /* bafh */
  22.     WORD      usType;
  23.     DWORD      cbSize;
  24.     DWORD      offNext;
  25.     WORD      cxDisplay;
  26.     WORD      cyDisplay;
  27.     OS2_BITMAPFILEHEADER bfh;
  28. } BITMAPARRAYFILEHEADER;
  29.  
  30. /*
  31.  * These are the identifying values that go in the usType field of the
  32.  * BITMAPFILEHEADER and BITMAPARRAYFILEHEADER. (BFT_ => Bit map File Type)
  33.  */
  34.  
  35. #define BFT_ICON        0x4349    /* 'IC' */
  36. #define BFT_BMAP        0x4d42    /* 'BM' */
  37. #define BFT_POINTER        0x5450    /* 'PT' */
  38. #define BFT_COLORICON        0x4943    /* 'CI' */
  39. #define BFT_COLORPOINTER    0x5043    /* 'CP' */
  40. #define BFT_BITMAPARRAY     0x4142    /* 'BA' */
  41.  
  42. /* RGB data for _BITMAPINFO struct */
  43. typedef struct _RGB {           /* rgb */
  44.     BYTE bBlue;
  45.     BYTE bGreen;
  46.     BYTE bRed;
  47. } RGB;