1
0

AudioPlugInPropPage.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef _PLUGIN_PROP_PAGE_H_
  2. #define _PLUGIN_PROP_PAGE_H_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. #include "../sps_common.h"
  7. struct IMediaParams;
  8. struct IMediaParamsUICallback;
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CAudioPlugInPropPage dialog
  11. class CAudioPlugInPropPage :
  12. public CUnknown,
  13. public IPropertyPage
  14. {
  15. // Construction
  16. public:
  17. CAudioPlugInPropPage( IUnknown* pUnk, HRESULT* phr );
  18. virtual ~CAudioPlugInPropPage();
  19. // CUnknown
  20. DECLARE_IUNKNOWN;
  21. STDMETHODIMP NonDelegatingQueryInterface(REFIID riid,void **ppv);
  22. // *** IPropertyPage methods ***
  23. STDMETHODIMP_(HRESULT) SetPageSite(LPPROPERTYPAGESITE pPageSite);
  24. STDMETHODIMP_(HRESULT) Activate(HWND hwndParent, LPCRECT prect, BOOL fModal);
  25. STDMETHODIMP_(HRESULT) Deactivate(void);
  26. STDMETHODIMP_(HRESULT) GetPageInfo(LPPROPPAGEINFO pPageInfo);
  27. STDMETHODIMP_(HRESULT) SetObjects(ULONG cObjects, LPUNKNOWN *ppUnk);
  28. STDMETHODIMP_(HRESULT) Show(UINT nCmdShow);
  29. STDMETHODIMP_(HRESULT) Move(LPCRECT prect);
  30. STDMETHODIMP_(HRESULT) IsPageDirty(void);
  31. STDMETHODIMP_(HRESULT) Apply(void);
  32. STDMETHODIMP_(HRESULT) Help(LPCWSTR lpszHelpDir);
  33. STDMETHODIMP_(HRESULT) TranslateAccelerator(LPMSG lpMsg);
  34. public:
  35. static CUnknown * WINAPI CreateInstance(LPUNKNOWN lpunk, HRESULT *phr);
  36. // Implementation
  37. protected:
  38. void UpdateControls();
  39. BOOL DialogProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  40. static BOOL CALLBACK StaticDialogProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  41. private:
  42. HWND m_hWnd;
  43. BOOL m_bDirty;
  44. IPropertyPageSite* m_pPageSite;
  45. IMediaParams* m_pMediaParams;
  46. IMediaParamsUICallback* m_pUICallback;
  47. SPSEffectContext m_ctx;
  48. };
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  51. #endif // _PLUGIN_PROP_PAGE_H_