3 Star 9 Fork 7

Gitee 极速下载/WinMerge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/winmerge/winmerge
克隆/下载
PropSyntaxColors.h 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
/**
* @file PropSyntaxColors.h
*
* @brief Declaration file for PropSyntaxColors propertyheet
*
*/
#pragma once
#include "ColorButton.h"
#include "OptionsPanel.h"
#include "SyntaxColors.h"
#include <array>
class PropSyntaxColors : public OptionsPanel
{
DECLARE_DYNAMIC(PropSyntaxColors)
// Construction & Destruction
public:
PropSyntaxColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
// Implement IOptionsPanel
virtual void ReadOptions() override;
virtual void WriteOptions() override;
// Dialog Data
public:
private:
enum { IDD = IDD_PROPPAGE_COLORS_SYNTAX };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
template<unsigned colorIndex>
afx_msg void OnBnClickedEcolor();
afx_msg void OnBnClickedBoldButton(unsigned ctlId, unsigned colorIndex);
template<unsigned ctlId, unsigned colorIndex>
afx_msg void OnBnClickedBoldButton() { OnBnClickedBoldButton(ctlId, colorIndex); }
void BrowseColorAndSave(unsigned colorIndex);
int GetCheckVal(UINT nColorIndex);
DECLARE_MESSAGE_MAP()
private:
std::array<CColorButton, COLORINDEX_LAST + 1> m_colorButtons;
std::array<int, COLORINDEX_LAST + 1> m_nBolds;
SyntaxColors *m_pTempColors;
std::array<COLORREF, 16> m_cCustColors;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/mirrors/WinMerge.git
git@gitee.com:mirrors/WinMerge.git
mirrors
WinMerge
WinMerge
master

搜索帮助