home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / dive / show.h < prev    next >
Text File  |  1999-05-11  |  4KB  |  91 lines

  1. /**************************************************************************
  2.  *
  3.  * File Name        : SHOW.H
  4.  *
  5.  * Description      : global data header for SHOW.EXE
  6.  *
  7.  * Copyright        : COPYRIGHT IBM CORPORATION, 1991, 1992
  8.  *
  9.  *         DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  10.  *         sample code created by IBM Corporation. This sample code is not
  11.  *         part of any standard or IBM product and is provided to you solely
  12.  *         for  the purpose of assisting you in the development of your
  13.  *         applications.  The code is provided "AS IS", without
  14.  *         warranty of any kind.  IBM shall not be liable for any damages
  15.  *         arising out of your use of the sample code, even if they have been
  16.  *         advised of the possibility of such damages.
  17.  *
  18.  ****************************************************************************/
  19.  
  20. /*   Menu items definitions
  21. */
  22. #define ID_MAINWND      256
  23. #define ID_OPTIONS      257
  24. #define ID_SNAP         258
  25. #define ID_EXIT         259
  26. #define ID_NEWTEXT      260
  27. #define ID_QUERY        261
  28. #define ID_DIRECT       263
  29. #define ID_USEDIVE      264
  30.  
  31. #define ID_DIALOG       262
  32. #define ID_EF_11         11
  33. #define ID_EF_12         12
  34. #define ID_EF_13         13
  35. #define ID_EF_14         14
  36. #define ID_EF_15         15
  37. #define ID_EF_16         16
  38. #define ID_EF_17         17
  39. #define ID_EF_18         18
  40. #define ID_EF_19         19
  41. #define ID_EF_20         20
  42.  
  43.  
  44. /*   Maximum number of files to support
  45. */
  46. #define MAX_FILE 14                    /* Maximum number of bitmap files    */
  47.  
  48.  
  49.  
  50. /*   Windoe data structure
  51. */
  52. typedef struct _WINDATA
  53. {
  54.     BOOL   fStartBlit;
  55.     BOOL   fVrnDisabled;             /* ????  Visual region enable/disable  */
  56.     BOOL   fChgSrcPalette;           /* Flag for change of source palette   */
  57.     BOOL   fDataInProcess;           /* ????  Visual region enable/disable  */
  58.     BOOL   fDirect;                  /* Indicates direct access or blit     */
  59.     HWND   hwndFrame;                /* Frame window handle                 */
  60.     HWND   hwndClient;               /* Client window handle                */
  61.     HDIVE  hDive;                    /* DIVE handle                         */
  62.     ULONG  ulnumColor;               /* Number of colors in bitmaps         */
  63.     ULONG  ulWidth;                  /* Bitmap width in pels                */
  64.     ULONG  ulHeight;                 /* Bitmap Height in pels               */
  65.     FOURCC fccColorFormat;           /* Bitmap color format                 */
  66.     ULONG  ulMaxFiles;               /* Number of bimap files showing       */
  67.     TID    tidBlitThread;            /* Thread ID for blitting routine      */
  68.     ULONG  ulSrcLineSizeBytes;       /* source linesize                     */
  69.     LONG   cxWidthWindow;            /* Size of width of frame window       */
  70.     LONG   cyHeightWindow;           /* Size of height of frame window      */
  71.  
  72.     LONG   cxWidthBorder;            /* Size of width of vertical border    */
  73.     LONG   cyWidthBorder;            /* Size of width of horizontal border  */
  74.     LONG   cyTitleBar;               /* Size of title bar                   */
  75.     LONG   cyMenu;                   /* Size of menu                        */
  76.     LONG   cxWindowPos;              /* X position of frame window          */
  77.     LONG   cyWindowPos;              /* Y position of frmae window          */
  78.  
  79.     POINTL plWindowPos;              /* Position of display window          */
  80.     RECTL  rcls[50];                 /* Visible region rectangles           */
  81.     ULONG  ulNumRcls;                /* Number of visible region rectangles */
  82.     ULONG  ulLineSizeBytes;          /* Size of scan line bounded by window */
  83.     ULONG  ulColorSizeBytes;         /* Number of bytes per pel             */
  84.  
  85.     SWP    swp;                      /* Standard window position structure  */
  86.  
  87. } WINDATA, *PWINDATA;
  88.  
  89.  
  90. typedef  PBYTE    *PPBYTE;
  91.