home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / videotlk.zip / SAMPLES / DIVEOLD / DIVE.H < prev    next >
Text File  |  1998-12-24  |  4KB  |  76 lines

  1. #ifndef _WTV_H
  2. #define _WTV_H
  3.  
  4. #define WTV_NAME        ("WinCast TV (c) ASL, 1996-98 UK")
  5.  
  6. #define ID_MAINWND      (256)
  7.  
  8. #define IDD_NOTE        (500)
  9. #define IDD_NOTE_BOOK   (IDD_NOTE + 1)
  10.  
  11. /* Here are the menus and there options                                     */
  12. #define ID_FILE         (ID_MAINWND+1)      /* File menu                    */
  13. #define ID_FILE_EXIT    (ID_FILE+1)         /* File menu ... exit           */
  14.  
  15. #define ID_TV           (ID_FILE_EXIT+1)    /* TV menu                      */
  16. #define ID_TV_SETUP     (ID_TV+1)           /* Setup the TV                 */
  17. #define ID_TV_CONNECT   (ID_TV+2)           /* Connector menu               */
  18.  
  19. #define ID_TV_CON1      (ID_TV_CONNECT+1)   /* TV menu ... connector 1      */
  20. #define ID_TV_CON2      (ID_TV_CONNECT+2)   /* TV menu ... connector 2      */
  21. #define ID_TV_RF        (ID_TV_CONNECT+3)   /* TV menu ... rf connector     */
  22. #define ID_TV_SVHS      (ID_TV_CONNECT+4)   /* TV menu ... svhs connector   */
  23. #define ID_TV_TEST      (ID_TV_CONNECT+5)   /* TV menu ... testcard         */
  24.  
  25. #define BASE_CONNECTOR  (ID_TV_CON1)        /* The default connector        */
  26.  
  27. typedef struct
  28. {
  29.     BOOL    win_bliting;        /* Is the bliting thread running?           */
  30.     BOOL    win_blit_halt;      /* Halt the bliting thread?                 */
  31.     TID     win_blit_tid;       /* Thread ID for the bliting routine        */
  32.  
  33.     HWND    win_hwnd_frame;     /* Frame window handle                      */
  34.     HWND    win_hwnd_client;    /* Client window handle                     */
  35.  
  36.     LONG    win_cxWidthWindow;  /* Size of width of frame window            */
  37.     LONG    win_cyHeightWindow; /* Size of height of frame window           */
  38.     LONG    win_cxWidthBorder;  /* Size of width of vertical border         */
  39.     LONG    win_cyWidthBorder;  /* Size of width of horizontal border       */
  40.     LONG    win_cyTitleBar;     /* Size of title bar                        */
  41.     LONG    win_cyMenu;         /* Size of menu                             */
  42.     LONG    win_cxWindowPos;    /* X position of frame window               */
  43.     LONG    win_cyWindowPos;    /* Y position of frmae window               */
  44.  
  45.     char    win_vcai_name[15];  /* Device name to use                       */
  46.     USHORT  win_vcai_no;        /* Device number to use                     */
  47.     USHORT  win_vcai_connector; /* Connector number to use                  */
  48.  
  49.     HDIVE           win_dive_handle;    /* DIVE display device handle       */
  50.     DRIVERHANDLE    win_vcai_handle;    /* VCAI capture device handle       */
  51.  
  52.     RECTL  win_rcls[50];        /* Visible region rectangles                */
  53.     ULONG  win_rcl_cnt;         /* Number of visible region rectangles      */
  54.     SWP    win_swp;             /* Standard window position structure       */
  55.  
  56.     ULONG   win_sizebytes;      /* Number of bytes per pel                  */
  57.     ULONG   win_width;          /* Image dimensions                         */
  58.     ULONG   win_height;
  59.  
  60.     ULONG   win_dive_width;
  61.     ULONG   win_dive_height;
  62. } WINDATA, *PWINDATA;
  63.  
  64. typedef struct _MOUSEPOS
  65. {
  66.     LONG mp_x;
  67.     LONG mp_y;
  68. } MOUSEPOS, FAR *PMOUSEPOS;
  69.  
  70. /* Functions defined in the source code of this program                     */
  71. VOID APIENTRY    DiveTV (ULONG data_addr);
  72. MRESULT EXPENTRY TVWindowProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  73. MRESULT EXPENTRY NotebookDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  74.  
  75. #endif
  76.