Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

RmMFCColorSlider.h

00001 //=================================================================================================//
00002 // filename: RmMFCColorSlider.h                                                                    //
00003 //                                                                                                 //
00004 //           ATI Research, Inc.                                                                    //
00005 //           3D Application Research Group                                                         //
00006 //                                                                                                 //
00007 // description: Defines the CRmColorSlider class.                                                  //
00008 //                                                                                                 //
00009 //=================================================================================================//
00010 //   (C) 2004 ATI Research, Inc.  All rights reserved.                                             //
00011 //=================================================================================================//
00012 
00013 #ifndef _RM_MFC_UTILITIES_COLOR_SLIDER_H_
00014 #define _RM_MFC_UTILITIES_COLOR_SLIDER_H_
00015 
00016 #include <MFCUtilities/RmMFCTypes.h>
00017 
00018 #define MAX_COLOR_SLIDER_COLORS 32
00019 
00020 //=================================================================================================//
00021 // Class:         CRmColorSlider                                                                   //
00022 //                                                                                                 //
00023 // Description:   Class definition for CRmColorSlider                                              //
00024 //                Derived from CSliderCtrl, this class                                             //
00025 //                creates a color slider control                                                   //
00026 //=================================================================================================//
00027 class RMMFCUTIL_API CRmColorSlider: public CSliderCtrl
00028 {
00029 public: // Public member functions
00030 
00031    // Construction
00032         CRmColorSlider();
00033         
00034         // Destruction
00035         virtual ~CRmColorSlider();
00036 
00037 public: // Public member functions
00038 
00039         // ClassWizard generated virtual function overrides
00040         //{{AFX_VIRTUAL(CColorSlider)
00041         //}}AFX_VIRTUAL
00042         
00043 protected: // Protected member functions
00044 
00045    void  SetValueFromPoint( CPoint *pPoint );
00046 
00047         //{{AFX_MSG(CColorSlider)
00048         afx_msg void OnPaint();
00049         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00050         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00051         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00052         afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
00053         afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
00054    afx_msg LRESULT OnValueChanged( WPARAM wParam, LPARAM lParam );
00055    afx_msg void OnCaptureChanged(CWnd *pWnd);
00056         //}}AFX_MSG
00057 
00058         DECLARE_MESSAGE_MAP()
00059 
00060 public: // Public member variables
00061 
00062    float *m_pfValue;
00063    CPoint m_oldPoint;
00064 
00065    float m_fColorArray[ MAX_COLOR_SLIDER_COLORS ][ 3 ];
00066    int   m_nNumColors;
00067    
00068 private: // Private membet variables
00069 
00070    bool  m_bLButtonDown;
00071    int   m_nChangeMessageIndex;
00072 
00073 }; // end class RMMFCUTIL_API CRmColorSlider: public CSliderCtrl
00074 
00075 #endif // !defined( RMMFC_CCOLORSLIDER_DEFINE )

Generated on Fri Feb 25 16:08:38 2005 for RenderMonkey SDK by doxygen 1.3.6