EditColorsDlg.h
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // EditColorsDlg.h : Header file; Defines the class definitions
- //
- // glOOP (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1998
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- // This program is -not- in the public domain.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CEditColorsDlg dialog
- class AFX_EXT_CLASS CEditColorsDlg : public CDialog
- {
- // Construction
- public:
- CEditColorsDlg(C3dColorList* pColorList, CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CEditColorsDlg)
- enum { IDD = IDD_EDIT_COLORS_DIALOG };
- CListBox m_ListBox;
- float m_fRed;
- float m_fGrn;
- float m_fBlu;
- CString m_szColorName;
- float m_fAlpha;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CEditColorsDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- //Attributes
- protected:
- CWnd m_wndButtonColor;
- C3dColor* m_pListSelColor;// Pointer to last selected color
- HPALETTE m_hPalette; // Handle to a palette
- C3dColorList* m_pList; // Save the list pointer
- // passed at initialization
- // Implementation
- public:
- void ResetDlg(C3dColorList* pColorList);
- protected:
- void SaveDialogData(C3dColor* pColor);
- void LoadDialogData(C3dColor* pColor);
- void PaintButtonWnd();
- // Generated message map functions
- //{{AFX_MSG(CEditColorsDlg)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
- afx_msg void OnSelchangeColorList();
- afx_msg void OnNew();
- afx_msg void OnButtonColor();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnKillfocusRed();
- afx_msg void OnKillfocusGrn();
- afx_msg void OnKillfocusBlu();
- afx_msg void OnKillfocusAlpha();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };