2 * @file PropSyntaxColors.h
4 * @brief Declaration file for PropSyntaxColors propertyheet
9 #include "ColorButton.h"
10 #include "OptionsPanel.h"
11 #include "SyntaxColors.h"
14 class PropSyntaxColors : public OptionsPanel
16 DECLARE_DYNAMIC(PropSyntaxColors)
18 // Construction & Destruction
20 PropSyntaxColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
22 // Implement IOptionsPanel
23 virtual void ReadOptions() override;
24 virtual void WriteOptions() override;
30 enum { IDD = IDD_PROPPAGE_COLORS_SYNTAX };
33 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
34 template<unsigned colorIndex>
35 afx_msg void OnBnClickedEcolor();
36 afx_msg void OnBnClickedBoldButton(unsigned ctlId, unsigned colorIndex);
37 template<unsigned ctlId, unsigned colorIndex>
38 afx_msg void OnBnClickedBoldButton() { OnBnClickedBoldButton(ctlId, colorIndex); }
39 void BrowseColorAndSave(unsigned colorIndex);
40 int GetCheckVal(UINT nColorIndex);
45 std::array<CColorButton, COLORINDEX_LAST + 1> m_colorButtons;
46 std::array<int, COLORINDEX_LAST + 1> m_nBolds;
48 SyntaxColors *m_pTempColors;
49 std::array<COLORREF, 16> m_cCustColors;