📄 cspin.h
字号:
#ifndef CSpin_h
#define CSpin_h 1
// afxcmn
#include "afxcmn.h"
// spinner that supports floats not just int.
class CSpin : public CSpinButtonCtrl
{
DECLARE_DYNAMIC(CSpin)
public:
// constructor
CSpin ();
// modifies the value in the control with steps*delta
void Change (int steps);
// the amount to change up and down.
void SetDelta (float x);
// responds to event.
void OnDeltaPos (NMHDR* pNMHDR, LRESULT* pResult);
protected:
//{{AFX_MSG(CSpin)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
float m_delta;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -