Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.0 KiB

  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 - 1995 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. * interface to vidframe window class - this window class creates a child
  20. * AVICAP window, and is responsible for positioning it within the vidframe
  21. * window, framing it, and scrolling it if it will not fit. Call
  22. * vidframeCreate to create the window, and vidframeLayout if the
  23. * video image size might have changed.
  24. */
  25. /*
  26. * create a frame window and child capture window at the
  27. * given location. Initialise the class if this is the
  28. * first time through.
  29. *
  30. * returns the window handle of the frame window
  31. * (or NULL if failure). returns the window handle of the AVICAP window
  32. * via phwndCap.
  33. */
  34. HWND vidframeCreate(
  35. HWND hwndParent,
  36. HINSTANCE hInstance,
  37. HINSTANCE hPrevInstance,
  38. int x,
  39. int y,
  40. int cx,
  41. int cy,
  42. HWND FAR * phwndCap
  43. );
  44. /*
  45. * layout the window - decide if we need scrollbars or
  46. * not, and position the avicap window correctly
  47. *
  48. * called if the size of the vidframe window changes or can be
  49. * called externally whenever the video size might have changed.
  50. */
  51. void vidframeLayout(HWND hwndFrame, HWND hwndCap);
  52. /*
  53. * change the background fill brush to be one of-
  54. * IDD_PrefsDefBackground - windows default background colour
  55. * IDD_PrefsLtGrey - light grey
  56. * IDD_PrefsDkGrey - dark grey
  57. * IDD_PrefsBlack - black
  58. */
  59. void vidframeSetBrush(HWND hwnd, int iPref);
  60.