home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / videotlk.zip / SAMPLES / DIVE / WTV.H < prev   
Text File  |  2000-05-15  |  4KB  |  78 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. #define ID_NEWTEXT      (ID_FILE+2)
  15.  
  16. #define ID_TV           (ID_FILE_EXIT+1)    /* TV menu                      */
  17. #define ID_TV_SETUP     (ID_TV+1)           /* Setup the TV                 */
  18. #define ID_TV_CONNECT   (ID_TV+2)           /* Connector menu               */
  19.  
  20. #define ID_TV_CON1      (ID_TV_CONNECT+1)   /* TV menu ... connector 1      */
  21. #define ID_TV_CON2      (ID_TV_CONNECT+2)   /* TV menu ... connector 2      */
  22. #define ID_TV_RF        (ID_TV_CONNECT+3)   /* TV menu ... rf connector     */
  23. #define ID_TV_SVHS      (ID_TV_CONNECT+4)   /* TV menu ... svhs connector   */
  24. #define ID_TV_TEST      (ID_TV_CONNECT+5)   /* TV menu ... testcard         */
  25.  
  26. #define BASE_CONNECTOR  (ID_TV_CON1)        /* The default connector        */
  27.  
  28. typedef struct
  29. {
  30.     BOOL    win_bliting;        /* Is the bliting thread running?           */
  31.     BOOL    win_blit_halt;      /* Halt the bliting thread?                 */
  32.     TID     win_blit_tid;       /* Thread ID for the bliting routine        */
  33.  
  34.     HWND    win_hwnd_frame;     /* Frame window handle                      */
  35.     HWND    win_hwnd_client;    /* Client window handle                     */
  36.  
  37.     LONG    win_cxWidthWindow;  /* Size of width of frame window            */
  38.     LONG    win_cyHeightWindow; /* Size of height of frame window           */
  39.     LONG    win_cxWidthBorder;  /* Size of width of vertical border         */
  40.     LONG    win_cyWidthBorder;  /* Size of width of horizontal border       */
  41.     LONG    win_cyTitleBar;     /* Size of title bar                        */
  42.     LONG    win_cyMenu;         /* Size of menu                             */
  43.     LONG    win_cxWindowPos;    /* X position of frame window               */
  44.     LONG    win_cyWindowPos;    /* Y position of frmae window               */
  45.  
  46.     char    win_vcai_name[15];  /* Device name to use                       */
  47.     USHORT  win_vcai_no;        /* Device number to use                     */
  48.     USHORT  win_vcai_connector; /* Connector number to use                  */
  49.  
  50.     HDIVE           win_dive_handle;    /* DIVE display device handle       */
  51.     DRIVERHANDLE    win_vcai_handle;    /* VCAI capture device handle       */
  52.  
  53.     RECTL  win_rcls[50];        /* Visible region rectangles                */
  54.     ULONG  win_rcl_cnt;         /* Number of visible region rectangles      */
  55.     SWP    win_swp;             /* Standard window position structure       */
  56.  
  57.     ULONG   win_sizebytes;      /* Number of bytes per pel                  */
  58.     ULONG   win_width;          /* Image dimensions                         */
  59.     ULONG   win_height;
  60.  
  61.     ULONG   win_dive_bufno;     /* Buffer number to blit from or to         */
  62.     ULONG   win_dive_width;
  63.     ULONG   win_dive_height;
  64. } WINDATA, *PWINDATA;
  65.  
  66. typedef struct _MOUSEPOS
  67. {
  68.     LONG mp_x;
  69.     LONG mp_y;
  70. } MOUSEPOS, FAR *PMOUSEPOS;
  71.  
  72. /* Functions defined in the source code of this program                     */
  73. VOID APIENTRY    DiveTV (ULONG data_addr);
  74. MRESULT EXPENTRY TVWindowProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  75. MRESULT EXPENTRY NotebookDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  76.  
  77. #endif
  78.