editex.h

来自「24点游戏,用c++实现」· C头文件 代码 · 共 61 行

H
61
字号
#if !defined(AFX_EDITEX_H__CDC1A41D_CE73_4EE4_B296_4886BCACA0E6__INCLUDED_)
#define AFX_EDITEX_H__CDC1A41D_CE73_4EE4_B296_4886BCACA0E6__INCLUDED_

#include "BmpProc.h"	// Added by ClassView
#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)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetFont(LOGFONT logFont);
	void SetColor(COLORREF color);
	BOOL Create(DWORD dwStyle, CRect& rect, CWnd* pParentWnd, UINT nID);
	virtual ~CEditEx();

	// Generated message map functions
protected:
	CFont m_font;
	CBmpProc m_bmpBK;
	LOGFONT m_logFont;
	CBrush m_brush;
	COLORREF m_clrFont;
	//{{AFX_MSG(CEditEx)
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg UINT OnGetDlgCode();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_EDITEX_H__CDC1A41D_CE73_4EE4_B296_4886BCACA0E6__INCLUDED_)

⌨️ 快捷键说明

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