home *** CD-ROM | disk | FTP | other *** search
- //==========================================================================;
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
- // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- // PURPOSE.
- //
- // Copyright (c) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
- //
- //--------------------------------------------------------------------------;
- //
- // contprop.h
- //
- //
- // Contents:
- //
- // CContrastProperties class. This class implements the property page
- // for the contrast filter and exposes the IPropertyPage interface
- // which is defined by OLE2.
- //
-
-
- class CContrastProperties : public CBasePropertyPage
- {
-
- public:
-
- static CUnknown *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();
-
- CContrastProperties(LPUNKNOWN lpunk, HRESULT *phr);
-
- HWND CreateSlider(HWND hwndParent);
- void OnSliderNotification(WPARAM wParam);
-
- HWND m_hwndSlider; // handle of slider
-
- signed char m_cContrastOnExit; // remember contrast level for CANCEL
- signed char m_cContrastLevel; // remember contrast level for next Activate
-
- IContrast *m_pContrast;
- IContrast *pIContrast(void) { ASSERT(m_pContrast); return m_pContrast; }
-
- };
-