memoedit.h

来自「类似vc的集成开发环境」· C头文件 代码 · 共 65 行

H
65
字号
#if !defined(AFX_MEMOEDIT_H__ADA2FA95_BFD7_495A_A9D2_28477D2DB322__INCLUDED_)
#define AFX_MEMOEDIT_H__ADA2FA95_BFD7_495A_A9D2_28477D2DB322__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMemoEdit window

class CMemoEdit : public CRichEditCtrl
{
// Construction
public:
	CMemoEdit();

// Attributes
public:

	bool		m_bUseMask;				// true to use edit mask.
	bool		m_bMaskKeyInProgress;	// true when 
	CString		m_strWindowText;		// buffer that holds the actual edit text.
	CString		m_strMask;				// buffer that holds the actual edit mask value.
	CString		m_strLiteral;
	CString		m_strValid;
	CString		m_strMaskLiteral;
	CFont		m_Font;	
// Operations
public:

	void SetEditMask(LPCTSTR lpszMask, LPCTSTR lpszLiteral, LPCTSTR lpszWindowText);
	void SendChar(UINT nChar);
	bool CheckChar(UINT nChar);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMemoEdit)
	//}}AFX_VIRTUAL

	
//		virtual bool ProcessMask(UINT nChar, int nEndPos);
// Implementation
public:
	virtual ~CMemoEdit();

	void UpdateFont();
	// Generated message map functions
protected:
	//{{AFX_MSG(CMemoEdit)
		// NOTE - the ClassWizard will add and remove member functions here.
//	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MEMOEDIT_H__ADA2FA95_BFD7_495A_A9D2_28477D2DB322__INCLUDED_)

⌨️ 快捷键说明

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