spinnerbutton.h
来自「通过VC源代码」· C头文件 代码 · 共 47 行
H
47 行
// SpinnerButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSpinnerButton window
class CSpinnerButton : public CButton
{
// Construction
public:
CSpinnerButton();
void pulse() { pos = (pos + 1) % 8; InvalidateRect(NULL); }
void setMode(BOOL m) { mode = m; }
BOOL getMode() { return mode; }
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSpinnerButton)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSpinnerButton();
// Generated message map functions
protected:
UINT pos;
BOOL mode;
static CBrush green;
static CBrush red;
//{{AFX_MSG(CSpinnerButton)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?