rlm@1: #if !defined(AFX_GBCOLORDLG_H__8D6126EF_06BB_48CF_ABB3_2CC4B1B60358__INCLUDED_) rlm@1: #define AFX_GBCOLORDLG_H__8D6126EF_06BB_48CF_ABB3_2CC4B1B60358__INCLUDED_ rlm@1: rlm@1: #if _MSC_VER > 1000 rlm@1: #pragma once rlm@1: #endif // _MSC_VER > 1000 rlm@1: // GBColorDlg.h : header file rlm@1: // rlm@1: rlm@1: #include "ColorButton.h" // Added by ClassView rlm@1: rlm@1: ///////////////////////////////////////////////////////////////////////////// rlm@1: // GBColorDlg dialog rlm@1: rlm@1: class GBColorDlg : public CDialog rlm@1: { rlm@1: // Construction rlm@1: public: rlm@1: int getWhich(); rlm@1: afx_msg void OnColorClicked(UINT id); rlm@1: u16 *getColors(); rlm@1: void setWhich(int w); rlm@1: u16 colors[24]; rlm@1: ColorButton colorControls[8]; rlm@1: GBColorDlg(CWnd*pParent = NULL); // standard constructor rlm@1: rlm@1: // Dialog Data rlm@1: //{{AFX_DATA(GBColorDlg) rlm@1: enum { IDD = IDD_GB_COLORS }; rlm@1: CComboBox m_predefined; rlm@1: int which; rlm@1: //}}AFX_DATA rlm@1: rlm@1: // Overrides rlm@1: // ClassWizard generated virtual function overrides rlm@1: //{{AFX_VIRTUAL(GBColorDlg) rlm@1: protected: rlm@1: virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support rlm@1: //}}AFX_VIRTUAL rlm@1: rlm@1: // Implementation rlm@1: protected: rlm@1: // Generated message map functions rlm@1: //{{AFX_MSG(GBColorDlg) rlm@1: afx_msg void OnDefault(); rlm@1: afx_msg void OnReset(); rlm@1: afx_msg void OnUser1(); rlm@1: afx_msg void OnUser2(); rlm@1: afx_msg void OnCancel(); rlm@1: afx_msg void OnOk(); rlm@1: virtual BOOL OnInitDialog(); rlm@1: afx_msg void OnSelchangePredefined(); rlm@1: //}}AFX_MSG rlm@1: DECLARE_MESSAGE_MAP() rlm@1: }; rlm@1: rlm@1: //{{AFX_INSERT_LOCATION}} rlm@1: // Microsoft Visual C++ will insert additional declarations immediately before the previous line. rlm@1: rlm@1: #endif // !defined(AFX_GBCOLORDLG_H__8D6126EF_06BB_48CF_ABB3_2CC4B1B60358__INCLUDED_)