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

  1. /**************************************************************************
  2.  *
  3.  * File Name        : FSDIVE.H
  4.  *
  5.  * Description      : global data header for FSDIVE.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. #define ID_FULLSCR      265
  31.  
  32. #define ID_DIALOG       262
  33. #define ID_EF_11         11
  34. #define ID_EF_12         12
  35. #define ID_EF_13         13
  36. #define ID_EF_14         14
  37. #define ID_EF_15         15
  38. #define ID_EF_16         16
  39. #define ID_EF_17         17
  40. #define ID_EF_18         18
  41. #define ID_EF_19         19
  42. #define ID_EF_20         20
  43.  
  44.  
  45. #define WM_GetVideoModeTable  0x04A2
  46. #define WM_SetVideoMode       0x04A0
  47. #define WM_NotifyVideoModeChange 0x04A1
  48.  
  49. /*   Maximum number of files to support
  50. */
  51. #define MAX_FILE 14                    /* Maximum number of bitmap files    */
  52.  
  53.  
  54. /*   Windoe data structure
  55. */
  56. typedef struct _WINDATA
  57. {
  58.     BOOL   fStartBlit;
  59.     BOOL   fVrnDisabled;             /* ????  Visual region enable/disable  */
  60.     BOOL   fChgSrcPalette;           /* Flag for change of source palette   */
  61.     BOOL   fDataInProcess;           /* ????  Visual region enable/disable  */
  62.     BOOL   fDirect;                  /* Indicates direct access or blit     */
  63.     HWND   hwndFrame;                /* Frame window handle                 */
  64.     HWND   hwndClient;               /* Client window handle                */
  65.     HDIVE  hDive;                    /* DIVE handle                         */
  66.     ULONG  ulnumColor;               /* Number of colors in bitmaps         */
  67.     ULONG  ulWidth;                  /* Bitmap width in pels                */
  68.     ULONG  ulHeight;                 /* Bitmap Height in pels               */
  69.     FOURCC fccColorFormat;           /* Bitmap color format                 */
  70.     ULONG  ulMaxFiles;               /* Number of bimap files showing       */
  71.     TID    tidBlitThread;            /* Thread ID for blitting routine      */
  72.     ULONG  ulSrcLineSizeBytes;       /* source linesize                     */
  73.     LONG   cxWidthWindow;            /* Size of width of frame window       */
  74.     LONG   cyHeightWindow;           /* Size of height of frame window      */
  75.  
  76.     LONG   cxWidthBorder;            /* Size of width of vertical border    */
  77.     LONG   cyWidthBorder;            /* Size of width of horizontal border  */
  78.     LONG   cyTitleBar;               /* Size of title bar                   */
  79.     LONG   cyMenu;                   /* Size of menu                        */
  80.     LONG   cxWindowPos;              /* X position of frame window          */
  81.     LONG   cyWindowPos;              /* Y position of frmae window          */
  82.  
  83.     POINTL plWindowPos;              /* Position of display window          */
  84.     RECTL  rcls[50];                 /* Visible region rectangles           */
  85.     ULONG  ulNumRcls;                /* Number of visible region rectangles */
  86.     ULONG  ulLineSizeBytes;          /* Size of scan line bounded by window */
  87.     ULONG  ulColorSizeBytes;         /* Number of bytes per pel             */
  88.  
  89.     SWP    swp;                      /* Standard window position structure  */
  90.  
  91. } WINDATA, *PWINDATA;
  92.  
  93.  
  94. typedef  PBYTE    *PPBYTE;
  95.