home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / video / vidcap / vidframe.h < prev   
Encoding:
Text File  |  1997-10-05  |  2.1 KB  |  67 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (C) 1992 - 1997 Microsoft Corporation.  All Rights Reserved.
  9.  *
  10.  **************************************************************************/
  11. /****************************************************************************
  12.  *
  13.  *   vidframe.h: Frame for capture window
  14.  *
  15.  *   Vidcap32 Source code
  16.  *
  17.  ***************************************************************************/
  18.  
  19. /*
  20.  * interface to vidframe window class - this window class creates a child
  21.  * AVICAP window, and is responsible for positioning it within the vidframe
  22.  * window, framing it, and scrolling it if it will not fit. Call
  23.  * vidframeCreate to create the window, and vidframeLayout if the
  24.  * video image size might have changed.
  25.  */
  26.  
  27.  
  28.  
  29. /*
  30.  * create a frame window and child capture window at the
  31.  * given location. Initialise the class if this is the
  32.  * first time through.
  33.  *
  34.  * returns the window handle of the frame window
  35.  * (or NULL if failure). returns the window handle of the AVICAP window
  36.  * via phwndCap.
  37.  */
  38. HWND vidframeCreate(
  39.     HWND hwndParent,
  40.     HINSTANCE hInstance,
  41.     HINSTANCE hPrevInstance,
  42.     int x,
  43.     int y,
  44.     int cx,
  45.     int cy,
  46.     HWND FAR * phwndCap
  47. );
  48.  
  49.  
  50. /*
  51.  * layout the window  - decide if we need scrollbars or
  52.  * not, and position the avicap window correctly
  53.  *
  54.  * called if the size of the vidframe window changes or can be
  55.  * called externally whenever the video size might have changed.
  56.  */
  57. void vidframeLayout(HWND hwndFrame, HWND hwndCap);
  58.  
  59. /*
  60.  * change the background fill brush to be one of-
  61.  *  IDD_PrefsDefBackground  - windows default background colour
  62.  *  IDD_PrefsLtGrey - light grey
  63.  *  IDD_PrefsDkGrey - dark grey
  64.  *  IDD_PrefsBlack - black
  65.  */
  66. void vidframeSetBrush(HWND hwnd, int iPref);
  67.