spindlg.h

来自「一个自定义的SPIN控件」· C头文件 代码 · 共 58 行

H
58
字号
#if !defined(AFX_SPINDLG_H__ED9FF25B_8ECC_46E6_B9EC_5E836B60FABC__INCLUDED_)
#define AFX_SPINDLG_H__ED9FF25B_8ECC_46E6_B9EC_5E836B60FABC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SpinDlg.h : header file
//
#include "spinedit.h"
/////////////////////////////////////////////////////////////////////////////
// CSpinDlg dialog

class CSpinDlg : public CDialog
{
// Construction
public:
	CSpinDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSpinDlg)
	enum { IDD = IDD_DLGSPINEDITCTRL };
	BOOL	m_bNeedText;
	CString	m_strExtraText;
	double	m_dbMax;
	double	m_dbMin;
	BYTE	m_bPos;
	double	m_dbStep;
	int		m_nDataType;
	//}}AFX_DATA
	CSpinEdit m_SpinEdit;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSpinDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSpinDlg)
	afx_msg void OnRadioint();
	afx_msg void OnRadiofloat();
	afx_msg void OnRadiodouble();
	afx_msg void OnBtnapplyparam();
	afx_msg void OnChecktext();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SPINDLG_H__ED9FF25B_8ECC_46E6_B9EC_5E836B60FABC__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?