home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c034 / 7.ddi / INCLUDE / PMBITMAP.H$ / PMBITMAP.bin
Encoding:
Text File  |  1989-11-06  |  1.8 KB  |  58 lines

  1. /***************************************************************************\
  2. *
  3. * Module Name: PMBITMAP.H
  4. *
  5. * OS/2 Presentation Manager Bit Map, Icon and Pointer type declarations.
  6. *
  7. * Copyright (c) 1989-1990, Microsoft Corporation.  All rights reserved.
  8. *
  9. \***************************************************************************/
  10.  
  11. /*
  12.  * This is the file format structure for Bit Maps, Pointers and Icons
  13.  * as stored in the resource file of a PM application.
  14.  *
  15.  * Notes on file format:
  16.  *   Each BITMAPFILEHEADER entry is immediately followed by the color table
  17.  *   for the bit map bits it references.
  18.  *   Icons and Pointers contain two BITMAPFILEHEADERs for each ARRAYHEADER
  19.  *   item. The first one is for the ANDXOR mask, the second is for the
  20.  *   COLOR mask. All offsets are absolute based on the start of the FILE.
  21.  */
  22.  
  23. #define PMBITMAP_INCLUDED
  24.  
  25. typedef struct _BITMAPFILEHEADER { /* bfh */
  26.     USHORT      usType;
  27.     ULONG      cbSize;
  28.     SHORT      xHotspot;
  29.     SHORT      yHotspot;
  30.     ULONG      offBits;
  31.     BITMAPINFOHEADER bmp;
  32. } BITMAPFILEHEADER;
  33. typedef BITMAPFILEHEADER FAR *PBITMAPFILEHEADER;
  34.  
  35. /*
  36.  * This is the 1.2 device independent format header
  37.  */
  38. typedef struct _BITMAPARRAYFILEHEADER { /* bafh */
  39.     USHORT      usType;
  40.     ULONG      cbSize;
  41.     ULONG      offNext;
  42.     USHORT      cxDisplay;
  43.     USHORT      cyDisplay;
  44.     BITMAPFILEHEADER bfh;
  45. } BITMAPARRAYFILEHEADER;
  46. typedef BITMAPARRAYFILEHEADER FAR *PBITMAPARRAYFILEHEADER;
  47.  
  48. /*
  49.  * These are the identifying values that go in the usType field of the
  50.  * BITMAPFILEHEADER and BITMAPARRAYFILEHEADER. (BFT_ => Bit map File Type)
  51.  */
  52. #define BFT_ICON        0x4349    /* 'IC' */
  53. #define BFT_BMAP        0x4d42    /* 'BM' */
  54. #define BFT_POINTER        0x5450    /* 'PT' */
  55. #define BFT_COLORICON        0x4943    /* 'CI' */
  56. #define BFT_COLORPOINTER    0x5043    /* 'CP' */
  57. #define BFT_BITMAPARRAY     0x4142    /* 'BA' */
  58.