📄 filteredit.h
字号:
//////////////////////////////////////////////////////////////////////
// Files for Quake Demo Project
// 2005.3.17
// If this code works, it was written by TY.
// If not, I don't know who wrote it.
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILTEREDIT_H__296E9CD7_2A16_4E59_A48C_BB800C580040__INCLUDED_)
#define AFX_FILTEREDIT_H__296E9CD7_2A16_4E59_A48C_BB800C580040__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FilterEdit.h : header file
#include <afxtempl.h>
#define FT_DISALLOW 0x0001
#define FT_ALLOW 0x0002
#define FT_NOLIMIT 0x0004
#define FE_NUMBER 0x0001
#define FE_LOWERCASE 0x0002
#define FE_UPPERCASE 0x0004
#define FE_CHARACTER FE_LOWERCASE|FE_UPPERCASE
#define FDT_FLOAT 0x0008
#define FDT_INTEGER 0x000A
typedef struct tagINPUTLIMIT
{
TCHAR nchar;
unsigned nlimit;
}InputLimit;
/////////////////////////////////////////////////////////////////////////////
// CFilterEdit window lowercase uppercase
class CFilterEdit : public CEdit
{
// Construction
public:
CFilterEdit();
void SetMode(UINT uMode);
void SelectStockType(UINT uType);
void SetFilter(const CString& strKey, UINT uMode);
void ModifyFilter(CString strRemove, CString strAdd, UINT uMode);
void ModifyFilter(CString strRemove, CString strAdd);
void AddInputLimit(const CString& strKey, unsigned int nlimit);
void ClearInputLimit();
void SetWarnMessageBox(CString strWarning, CString strCaption, BOOL bShow = TRUE);
CString GetClassImformation();
// Attributes
private:
void OnWarning();
CString m_strFilter;
CString m_strWarning;
CString m_strCaption;
BOOL m_bShow;
UINT m_uMode;
UINT m_uType;
CArray<InputLimit,InputLimit&>m_InputLimitArray;
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFilterEdit)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CFilterEdit();
// Generated message map functions
protected:
//{{AFX_MSG(CFilterEdit)
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_FILTEREDIT_H__296E9CD7_2A16_4E59_A48C_BB800C580040__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -