coloredit.h

来自「这是我仿照串口助手(龚建伟)作的一个例子并修正了其中的一些bug」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef _CCOLOR_EDIT_H_
#define _CCOLOR_EDIT_H_

#include "ColorControl.h"

class CColorEdit : public CEdit, public CColorControl
{

public:

        CColorEdit();
	virtual ~CColorEdit();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);

        //{{AFX_VIRTUAL(CColorEdit)
	public:
	virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
	//}}AFX_VIRTUAL

protected:

        //{{AFX_MSG(CColorEdit)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	bool m_bReadOnly;
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	void SetReadOnly(const bool bFlag);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
};

//{{AFX_INSERT_LOCATION}}

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?