slidetoolbar.h

来自「c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++」· C头文件 代码 · 共 75 行

H
75 行
字号

#if !defined(AFX_SLIDETOOLBAR_H__992196A1_7C20_11D4_BEC3_B9FC12288B45__INCLUDED_)
#define AFX_SLIDETOOLBAR_H__992196A1_7C20_11D4_BEC3_B9FC12288B45__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SlideToolBar.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSlideToolBar window

class CSlideToolBar : public CToolBar
{
// Construction
public:
	CSlideToolBar();

// Attributes
public:
	
	// X Rotation Set 
	CSliderCtrl m_wndSlider_Rot_X;
	CEdit m_wndEdit_Rot_X;
	CSpinButtonCtrl m_wndSpin_Rot_X;

	// Y Rotation Set 
	CSliderCtrl m_wndSlider_Rot_Y;
	CEdit m_wndEdit_Rot_Y;
	CSpinButtonCtrl m_wndSpin_Rot_Y;

	// Z Rotation Set 
	CSliderCtrl m_wndSlider_Rot_Z;
	CEdit m_wndEdit_Rot_Z;
	CSpinButtonCtrl m_wndSpin_Rot_Z;

	// Font used to fill the edit controls
	CFont m_font;


	int	m_nRotation[3];
		   

// Operations
public:

	void SetPositions();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSlideToolBar)
	//}}AFX_VIRTUAL

// Implementation
public:
	void UpdateValues();
	virtual ~CSlideToolBar();

	// Generated message map functions
protected:
	//{{AFX_MSG(CSlideToolBar)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SLIDETOOLBAR_H__992196A1_7C20_11D4_BEC3_B9FC12288B45__INCLUDED_)

⌨️ 快捷键说明

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