www.pudn.com > RBGContrast.rar > contprop.h
//------------------------------------------------------------------------------
// File: ContProp.h
//
// Desc: DirectShow sample code - definition of property page class for
// the contrast filter.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
class CContrastProperties : public CBasePropertyPage
{
public:
static CUnknown * WINAPI CreateInstance(LPUNKNOWN lpunk, HRESULT *phr);
private:
BOOL OnReceiveMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
HRESULT OnConnect(IUnknown *pUnknown);
HRESULT OnDisconnect();
HRESULT OnDeactivate();
HRESULT OnApplyChanges();
void SetDirty();
HWND CreateSlider(HWND hwndParent);
void OnSliderNotification(WPARAM wParam);
HWND m_hwndSlider;
CContrastProperties(LPUNKNOWN lpunk, HRESULT *phr);
signed char m_cContrastOnExit; // Remember contrast level for CANCEL
signed char m_cContrastLevel; // And likewise for next activate
IContrast *m_pContrast;
IContrast *pIContrast() {
ASSERT(m_pContrast);
return m_pContrast;
};
}; // CContrastProperties