📄 numedit.h
字号:
#if !defined(AFX_NUMEDIT_H__7482F7FF_A479_11D2_A6A7_00600844997A__INCLUDED_)
#define AFX_NUMEDIT_H__7482F7FF_A479_11D2_A6A7_00600844997A__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// NumEdit.h : header file
//
#define MAXRANGE 100
#define MINRANGE 0
#define MAXPOS 50
typedef int NUMSTYLE;
/////////////////////////////////////////////////////////////////////////////
// CNumEdit window
class CNumEdit : public CEdit
{
DECLARE_DYNAMIC(CNumEdit)
// Construction
public:
CNumEdit();
virtual ~CNumEdit();
// Attributes
public:
enum {VALID = 0x00, OUT_OF_RANGE = 0x01, INVALID_CHAR = 0x02};
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNumEdit)
//}}AFX_VIRTUAL
// Implementation
public:
virtual void ChangeAmount(int step);
virtual NUMSTYLE GetDelta();
virtual void SetDelta(NUMSTYLE delta);
virtual void GetRange(NUMSTYLE min, NUMSTYLE max) const;
virtual void SetRange(NUMSTYLE min, NUMSTYLE max);
virtual void Verbose(BOOL v);
virtual BOOL Verbose()const;
virtual int IsValid()const;
virtual int IsValid(const CString &str)const;
virtual BOOL SetValue(NUMSTYLE val);
virtual NUMSTYLE GetValue()const;
// Generated message map functions
protected:
BYTE m_NumberOfNumberAfterPoint;
BOOL m_Verbose;
NUMSTYLE m_Delta, m_MinValue, m_MaxValue;
virtual CString& ConstructFormat(CString &str, NUMSTYLE num);
//{{AFX_MSG(CNumEdit)
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NUMEDIT_H__7482F7FF_A479_11D2_A6A7_00600844997A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -