Leaked source code of windows server 2003
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.

68 lines
2.2 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) 2001 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //----------------------------------------------------------------------------
  12. // VMRProp.h
  13. //
  14. // Created 3/18/2001
  15. // Author: Steve Rowe [StRowe]
  16. //
  17. //----------------------------------------------------------------------------
  18. #ifndef __VMRPROP__
  19. #define __VMRPROP__
  20. // {A2CA6D57-BE10-45e0-9B81-7523681EC278}
  21. DEFINE_GUID(CLSID_VMRFilterConfigProp,
  22. 0xa2ca6d57, 0xbe10, 0x45e0, 0x9b, 0x81, 0x75, 0x23, 0x68, 0x1e, 0xc2, 0x78);
  23. class CVMRFilterConfigProp : public CBasePropertyPage
  24. {
  25. public:
  26. static CUnknown * WINAPI CreateInstance(LPUNKNOWN pUnk, HRESULT *phr);
  27. private:
  28. void CaptureCurrentImage(void);
  29. bool SaveCapturedImage(TCHAR* szFile, BYTE* lpCurrImage);
  30. HRESULT UpdateMixingData(DWORD dwStreamID);
  31. void UpdatePinPos(DWORD dwStreamID);
  32. void UpdatePinAlpha(DWORD dwStreamID);
  33. void OnHScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos);
  34. void InitConfigControls(DWORD pin);
  35. CVMRFilterConfigProp(LPUNKNOWN pUnk, HRESULT *phr);
  36. void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  37. BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
  38. INT_PTR OnReceiveMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
  39. HRESULT OnConnect(IUnknown *pUnknown);
  40. HRESULT OnDisconnect();
  41. HRESULT OnActivate();
  42. HRESULT OnApplyChanges();
  43. void SetDirty();
  44. // IVMRFilterConfig interface
  45. IVMRFilterConfig * m_pIFilterConfig;
  46. IVMRMixerControl * m_pIMixerControl;
  47. IMediaEventSink * m_pEventSink;
  48. DWORD m_dwNumPins;
  49. DWORD m_CurPin;
  50. FLOAT m_XPos;
  51. FLOAT m_YPos;
  52. FLOAT m_XSize;
  53. FLOAT m_YSize;
  54. FLOAT m_Alpha;
  55. }; // class COMPinConfigProperties
  56. #endif // __VMRPROP__