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

RmMFCColorPickerDlg.h

00001 //=================================================================================================//
00002 // filename: RmMFCColorPickerDlg.h                                                                 //
00003 //                                                                                                 //
00004 //           ATI Research, Inc.                                                                    //
00005 //           3D Application Research Group                                                         //
00006 //                                                                                                 //
00007 // description: Defines the CRmColorPickerDlg class.                                               //
00008 //                                                                                                 //
00009 //=================================================================================================//
00010 //   (C) 2004 ATI Research, Inc.  All rights reserved.                                             //
00011 //=================================================================================================//
00012 
00013 #ifndef _RM_MFC_UTILITIES_COLOR_PICKER_DLG_H_
00014 #define _RM_MFC_UTILITIES_COLOR_PICKER_DLG_H_
00015 
00016 #if _MSC_VER > 1000
00017 #pragma once
00018 #endif // _MSC_VER > 1000
00019 // RmColorPickerDlg.h : header file
00020 //
00021 
00022 #include <MFCUtilities/RmMFCTypes.h>
00023 #include <MFCUtilities/RmMFCNumericEdit.h>
00024 #include <MFCUtilities/RmMFCColorSlider.h>
00025 #include <MFCUtilities/RmMFCColorWheel.h>
00026 #include <MFCUtilities/RmMFCUtilitiesResource.h>
00027 #include <MFCUtilities/RmMFCColorPickerCtrl.h>
00028 
00030 // CRmColorPickerDlg dialog
00031 
00032 class RMMFCUTIL_API CRmColorPickerDlg : public CDialog
00033 {
00034 
00035 // Construction
00036 public:
00037         CRmColorPickerDlg();
00038 
00039    BOOL Create(   HWND           hwndParent,
00040                   const RM_TCHAR *pStrName,
00041                   float          *pColorData             = NULL,
00042                   COLORREF       *pColorRef              = NULL,
00043                   RmNode         *pRmNode                = NULL,
00044                   RmPlugInID     *pRmPlugInID            = NULL,
00045                   bool           bInitialFloatingPoint   = false,
00046                   int            nInitialColorType       = CRmColorPickerCtrl::COLOR_PICKER_TYPE_RGB );
00047 
00048 // Dialog Data
00049         //{{AFX_DATA(CRmColorPickerDlg)
00050         enum { IDD = IDD_RM_COLOR_PICKER_DIALOG };
00051         //}}AFX_DATA
00052 
00053 // Overrides
00054         // ClassWizard generated virtual function overrides
00055         //{{AFX_VIRTUAL(CRmColorPickerDlg)
00056         protected:
00057         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00058         virtual void PostNcDestroy();
00059         //}}AFX_VIRTUAL
00060 
00061 // Implementation
00062 protected:
00063 
00064         // Generated message map functions
00065         //{{AFX_MSG(CRmColorPickerDlg)
00066         virtual void      OnOK();
00067         virtual void      OnCancel();
00068    afx_msg void      OnClose();
00069    afx_msg void      OnDestroy();
00070         afx_msg void      OnSize( UINT nType, int cx, int cy );
00071    afx_msg LRESULT   OnColorChanged( WPARAM wParam, LPARAM lParam );
00072    afx_msg LRESULT   OnChildResize( WPARAM wParam, LPARAM lParam );
00073         //}}AFX_MSG
00074 
00075         DECLARE_MESSAGE_MAP()
00076 
00077         CRmColorPickerCtrl    m_colorPickerCtrl;         // The color picker control
00078 
00079    float                *m_pColorData;
00080    COLORREF             *m_pColorRef;
00081                   
00082    float                m_fOriginalColorArray[ 3 ];
00083    float                m_fOriginalAlpha;
00084    COLORREF             m_originalColorRef;
00085 
00086    HWND                 m_hWndParent;
00087    
00088 }; // end class RMMFCUTIL_API CRmColorPickerDlg : public CDialog
00089 
00090 #endif

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