editreadonly.h

来自「很好的文件加密程序,用vc++编的,适合初学者!」· C头文件 代码 · 共 54 行

H
54
字号

#if !defined(AFX_EDITREADONLY_H__4749FA48_D773_11D5_9E4C_00E0296C853D__INCLUDED_)
#define AFX_EDITREADONLY_H__4749FA48_D773_11D5_9E4C_00E0296C853D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditReadonly.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CEditReadonly window

class CEditReadonly : public CEdit
{
// Construction
public:
	CEditReadonly(COLORREF const& rclrText=RGB(0,0,0), COLORREF const& rclrBkgnd=RGB(255,255,255));

// Operations
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditReadonly)
	//}}AFX_VIRTUAL

// Implementation
public:
	//Setting the Background Color
	void SetBkColor(COLORREF const& roBkColor);
	~CEditReadonly();

	// Generated message map functions
protected:
	//{{AFX_MSG(CEditReadonly)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	COLORREF m_clrText;
	COLORREF m_clrBkgnd;
	CBrush m_brBkgnd;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EDITREADONLY_H__4749FA48_D773_11D5_9E4C_00E0296C853D__INCLUDED_)

⌨️ 快捷键说明

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