cspin.h
来自「是一个数字编辑器」· C头文件 代码 · 共 28 行
H
28 行
#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 + =
减小字号Ctrl + -
显示快捷键?