editex.h

来自「vc的一些原码,对于帮助学习和提高很有帮助」· C头文件 代码 · 共 62 行

H
62
字号
#if !defined(AFX_EDITEX_H__82CC2257_3272_11D4_AE54_006008AADC5D__INCLUDED_)
#define AFX_EDITEX_H__82CC2257_3272_11D4_AE54_006008AADC5D__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CEditEx window

class CEditEx : public CEdit
{
// Construction
public:
	CEditEx();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditEx)
	public:
	virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
	//}}AFX_VIRTUAL

// Implementation
public:
	COLORREF GetBkgndColor();
	COLORREF GetTextColor();
	COLORREF GetTextBkgndColor();
	COLORREF SetBkgndColor (COLORREF cr);
	COLORREF SetTextBkgndColor (COLORREF cr);
	COLORREF SetTextColor (COLORREF cr);
	virtual ~CEditEx();

	// Generated message map functions
protected:
	//{{AFX_MSG(CEditEx)
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	CBrush m_brBkgnd;
	COLORREF m_clrBkgnd;
	COLORREF m_clrTextBkgnd;
	COLORREF m_clrText;
};

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

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

#endif // !defined(AFX_EDITEX_H__82CC2257_3272_11D4_AE54_006008AADC5D__INCLUDED_)

⌨️ 快捷键说明

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